Sponsored
Use these hints if you're stuck. Try solving on your own first.
It is fast enough to check all possible subarrays
The end of each ascending subarray will be the start of the next
Solve with full IDE support and test cases