Code is not giving output for some inputs ,i am not able to find missing step, plzz tell me what is error

hey @Jitu748, change << to < in line 20