Reverse the order of all elements in the array using the two-pointer technique, swapping from both ends inward.
Category: algorithms
Difficulty: beginner