This is my multi dimensional array. Output should be in array2 structure. I have tried many ways covert above array in easy but all came up with bulky code and lots of iteration