Sponsored
Use these hints if you're stuck. Try solving on your own first.
Loop over the array and check the first index i such A[i] == i
Solve with full IDE support and test cases