return the value at the Nth position of the ways array .
return ways [ N ] ; } function printArray ( coins ) { for ( let i = 0 ; i < coins . length ; i ++ ) { document . write ( coins [ i ] + " " ) ; } }