Pregunta de entrevista de iProgrammer

I was asked to convert an object into an Array