Turing interview question

give me a coding challenge of flatting a deeply nested javascript object.