Oracle Interview Question

Dictionary iteration in python with dup values