To-DO: write from https://leetcode.com/problems/valid-number/solutions/1165815/valid-number/ Approach 2 and https://leetcode.com/problems/string-to-integer-atoi/solutions/1618709/string-to-integer/