Pregunta de entrevista de People Group

Print the deepest value in a nested object. The object structure can be anything. eg. Input: let x = { a: { b: { c: { d: { e: { name: "John", age: 32 } }, f: ['Hindi', 'English'] } }, g: { email: 'john@doe.com' } } }; Expected output: John 32