The answer could be correct in a different ring arithmetic.
There are many implicit assumptions, when asking such questions without further specifications.
Your friend could have either asked for clarifications or note that there could be cases, where the answer is notionally correct.