Qualcomm Interview Question

How to make a dictionary