Got my 94% C solution up to 100% by using long long ints for intermediate sums.
Edit: And won't this be a problem if interviewees can access the internet? The interviewers will have to make sure they can check the browsing history of the computer being used!