Regular Expression Matching & Reverse Integer