Synechron Interview Question

dictionary related question in python