Are we assuming only valid input or do we need to code for invalid values eg. [5,4,2,1,1] - would make the challenge mnore interesting if say we needed to return say -1 for invalid inputs.
Loading collection data...
Are we assuming only valid input or do we need to code for invalid values eg. [5,4,2,1,1] - would make the challenge mnore interesting if say we needed to return say -1 for invalid inputs.