Nokia interview question

List and dictionary in python