Flattening list
Given a list with multiple list elements, the final function needs to flatten the list to ensure that the list does not contain list elements.
Sample Code:
def flatArr(l):
# Enter your logic here...
Examples:
Input: [[1],[4,5],['numbers']]
Output: [1,4,5,"numbers"]
Explanation: The list has been flattened.
Input: [[1,2,3],[3,4,5]]
Output: [1,2,3,3,4,5]
Explanation: The list has been flattened.