eBay interview question

Python coding exercise to calculate minimum coins needed for a input value