Hackerrank - Bus Station Solution
There are groups of friends, and each group is numbered from 1 to . The th group contains people.
They live near a bus stop, and only a single bus operates on this route. An empty bus arrives at the bus stop and all the groups want to travel by the