Accidentally finding the solution to an exercise
Literature research is a legitimate process in science, they can't blame you for that. Clearly, however, you did not "rediscover" the result. One option would be to tell the tutor that you found a solution in the literature and if s/he could give you an alternative assignment instead.