Pregunta de entrevista de Cognizant

Q. How to iterate through objects?