Coding Challenge · ADVANCED
A park ranger is surveying a mountain trail represented by an array of elevations. For each checkpoint along the trail, determine how many consecutive previous checkpoints (including the current one) have elevations less than or equal to the current elevation, stopping at the first higher elevation or the start of the …