Beyondsoft Group interview question

Python program with key value pair