Welcome!
Elitism Guru wroteAs a person with learning difficulty I disagree, I had to cheat which I wouldn't consider appropriate admittingly.
If by cheat, you had to lookup an existing site that solve the problem, then the problem did the job, it pushed you to dig and find the solution.
If by cheat, you asked someone to help you solve the problem, then the problem did the job, because I presume that person explained things for you.
Either way, the problem is not there to test your programming or mathematical knowledge, it's there to test your curiosity, your thirst and most of all your geekiness. However means you've used to get past the exam, is fine by us.