convert sorted array to BST
reverse integer