Do you mean that they enter both the problem and the solution, and it should say if the result is correct? If so, it's possible to some extent.
If you mean that they just enter the solution to a pre-defined problem and it should say if that's the correct result or not, then yes, that's certainly possible.