How to Search any value in a deeply nested object (JavaScript interview question)