LogIQids interview question

In second technical I was asked questions 1. Array flatening using recurssion.