Qualcomm interview question

How to make a dictionary