If lastDigit is 9 then only possible digit after 9 can be 8 for a Stepping Number
else if ( lastDigit = = 9 ) q . Enqueue ( stepNumA ) ; else { q . Enqueue ( stepNumA ) ; q . Enqueue ( stepNumB ) ; } } }