Pergunta de entrevista da empresa Amazon

iterating a nested json, with recursive approach