Can't get what you asking but question say to only consider till 1000 so why will I take 5 digits into consideration and I have placed a box for every place place, for unit place for one for 10's place and ones for 1000 place, 1000 does not sum up to 10 so we have to consider the possibility till 0-999