Reverse Array Problem Leetcode Sql Practice