One day Nasrudin went to a candy store where the owner had mistakenly mixed the lids of three candy jars, leaving each one wrongly labeled. One contained peppermint candies, another contained chocolate candies, and the remaining contained peppermint candies and chocolate candies mixed. All the candies had the same packaging, so without tasting them it was impossible to tell which kind of candy it was.
The owner told Nasrudin that he would give him a bunch of candies if he could determine the least amount of candies that he should try in order to tell the correct label for each candy jar.
That day Nasrudín left the candy store with great joy with his gift.
How many candies did Nasrudin taste in order to get the prize? And how did he get the correct answer?