https://cses.fi/problemset/task/2216 finding positions of values in array to then count the required number of rounds.
No download links available.