Pergunta de entrevista da empresa Bhavna

Flatten array which were nested in n