Sponsored
Use these hints if you're stuck. Try solving on your own first.
Brute force and check if it is possible for a sorted array to start from each position.
Solve with full IDE support and test cases