Coin Change Problem All Combinations Javascript