Meena and Random Choice

Meena has an array of length N (1-indexed). The numbers of the array are arranged from left to right (the leftmost element's index being 1 and the rightmost's index being N).


This is a companion discussion topic for the original entry at https://toph.co/p/meena-and-random-choice