Related to CSES — Collecting Numbers
Problem statement here. I understood the solution for this.
How to compute the minimum number of rounds required? (this is not asked in that question)
Atcoder ABC #354 Solution Discussion