Topic: Two Pointer Problem / Level: beginner

Problem: Check if two arrays can be rearranged to form a sorted sequence by swapping exactly one pair of elements using two pointers.

Run the code to see the output here...