COINS.py: Preliminary solution without optimization
COINS_test.py: tests the two functions written