task 2 finished - exhaustive search for finding minimum amount to pay on
credit