CM.com interview question

Easy leet code question which was to reverse a string and reverse integer without leading zeros.