YLD Interview Question

Write recursive function that iterates over object with nested fields and flattens the object keys.