the biggest frustration in cs is when you spend literally hours debugging, only to realize after wasting tons of time that the issue was something like when the return statement is inside the for loop. Instead of returning the total or the final count you are returning the last value.