CMIMC 2018 Combinatorics Problem 1

Ninety-eight apples who always lie and one banana who always tells the truth are randomly arranged along a line. The first fruit says “One of the first forty fruit is the banana!” The last fruit responds “Well, one of the last forty fruit is the banana!” The fruit in the middle yells “I’m the banana!” In how many positions could the banana be?