leetcode:submit solution for valid number string matching problem,with finite automata algorithm