Solve Valid number BF way