Turing Interview Question

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