Secret Fruit List

A company is running a promotion. Customers purchased a secret list of fruit will receive prizes. Notice the order of the fruits matters.


This is a companion discussion topic for the original entry at https://algo.monster/problems/secret_fruits_list/