Pregunta de entrevista de Bhavna

Flatten array which were nested in n