RevInfotech interview question

Write code for nested mapping