Concept Flow - Merge Two Sorted Arrays Without Extra Space
Start with two sorted arrays A and B
Compare last element of A with first element of B
If A's last > B's first
Swap A's last and B's first
Sort array B to maintain order
Repeat until no swaps needed
Arrays merged without extra space
We repeatedly compare and swap elements between the two arrays to ensure all smaller elements are in the first array and larger in the second, sorting the second array after each swap.
