I am trying to write a function that converts and object of objects into array of array. The array should have same child as in the objects. The object of object is like:-