If lastDigit is 9 then only possible digit after 9 can be 8 for a Stepping Number
else if ( lastDigit = = 9 ) dfs ( n , m , stepNumA ) ; else { dfs ( n , m , stepNumA ) ; dfs ( n , m , stepNumB ) ; } }