Oracle interview question

Dictionary iteration in python with dup values