[LeetCode 65] Valid Number [Java]