Beyondsoft Group Interview Question

Python program with key value pair