updated reverse integer and finished construct binary tree.