Given the list of banknotes in the wallet and the amount of required money to gather from. No fractional parts and samll coins are used: only whole numbers. Provide the list of banknotes to get exactly required amount.
Example: W = [1;9;7;3;5], Amount = 12 --> [9;3]
 
Test set 1
Result:
 
Test set 2
Result:
 
Test set 3
Result:
 
Test set 4
Result:
 
Test set 5
Result: