Nokia Interview Question

List and dictionary in python