Next permutation
This was a weird question which I have seen for the first time. Dont know what to name it. I was basically supposed to traverse a tree in an outward manner
Output -> [1] [2 3] [5 4 6 7] [11 10 9 8 12 13 14 15]