LendingKart Interview Question

Python List comprehension, dictionary related