3011. Find if Array Can Be Sorted - Explanation

Problem Link