Expected output is giving wrong answer


#1

my doubt is that suppose if i got 5 times 5 as sum and 4 time 4 as sum…then my answer will 9 or 4 or 5?