Topic: Two Pointer Problem / Level: beginner

Problem: Check if two arrays can be rearranged to form a sorted sequence after swapping two adjacent elements using two pointers.

Run the code to see the output here...