From Bulbapedia, the community-driven Pokémon encyclopedia.
Pokémon Orienteering (Japanese: ポケモンオリエンテーリング Pokémon Orienteering) is a competition that was featured in Off the Unbeaten Path. In the contest, a Trainer and one of their Pokémon must navigate their way around Potpourri Island and attempt to find several landmarks located around the island. At each landmark, their map must be stamped with a Pokémon symbol found at each landmark. The first to get all the symbols and complete the stamp on their map and get back to the Pokémon Center is the winner. The prize is an enormous supply of fruit and a large golden medal.
James gave away the fruit to the rest of the contestants (excluding Jessie and Meowth).