Bhavna Interview Question

Flatten array which were nested in n