valid number leetcode