Flatten Array

In this question, we will be practicing our advanced algorithm skills by flattening a given array in optimal time.