1.controller will take 0 and check whether s[0] is digit or not.s[0] is not a digit so condition does not satisfies 2.it will take 1 and check whether s[1] is digit or not.s[1] is not a digit so ...