Reverse Array Leetcode Practice Sql