Related to CSES — Collecting Numbers
Problem statement here.
How to compute the minimum number of rounds required? (this is not asked in that question)