Outputs only 1 in solution


Unable to debug the code. Whatever the input be ,it ouptus only 1

Hey Tanjul, following are mistakes:

  1. wrong compare check in line 10
  2. in line 27 it should be == as unassigned numbers are pushed.

thnx a lot for your help