Implemented a function to reverse an array in-place. This method swaps elements from both ends of the array towards the center, effectively reversing the array with a time complexity of O(n) and space complexity of O(1).
Two Sum Problem:
Developed a solution for the two-sum problem, identifying indices of the two numbers in an array that add up to a specific target. Using a map to track elements and their indices, this approach quickly finds the complement of the current element by checking if it exists in the map. The indices of the elements that sum up to the target are returned in reversed order, achieved by calling the array reversal function on the result array.