Getting the peppermint candies to the guard on Prison Isle takes a bit of legwork, but the route is straightforward once you know it.
Start by speaking with Griffin, a resident of Earton. He's the one who sends you over to Prison Isle. Once you arrive, you'll need to chip rocks to earn your release, and you'll have to do this again to reach the guard.
After you leave, you'll be dropped on the other side of the bridge, where the guard is waiting. Talk to him and he'll ask you to bring back 5 peppermint candies. Head out, collect the candies, and return the same way you came, since it's the only path back.
Once that's done, he has a follow-up task: bring 5 more candies to a friend of his, then report back to him to finish the quest.