LendingKart interview question

Python List comprehension, dictionary related