Pergunta de entrevista da empresa VueOps

Q: Implement Flatten hash method in ruby, if nested hash given.