Cognizant interview question

Angaram check and dictionary operations