Converting to a 1D Array ExplanationWrite a Python function to convert a given 2D array into a 1D array