Leetcode 7 Reverse Integer and 8 String to Integer (atoi)

Leetcode 7 Reverse Integer and 8 String to Integer (atoi) This two problem share lots of similarities in data manipulating and thinking, and simplicity (:-D). Thus I decide to put