after solving, function returns 31
and now have to find out what will be count after 31 clock pulses more.
So, for that, first of all have to check current position of counter,
currently counter on 9, now 6 more pulses left to reach to 15 (as it’s MOD-16 so 0-15)
31-6= 25 , now current position 0 and 25 still left
25-16 = 9
so…..current position is 8 (as 0 there) which is 1000 !!!!