Given a String[] schedule, which represents which group
throws a party on each day, return a string of the first group that
becomes legally eligible for alcohol probation. Each element of
schedule will represent one day. If the same group throws 3 or more
parties, it becomes legally eligible for alcohol probation.
If no group becomes legally eligible for alcohol probation, return "".
schedule represents day 0, element 1 represents day 1, and so on. Thus, each day, there is exactly one group that throws a party.
schedule will contain between 0 and 50 elements, inclusive.
schedule will contain 1 to 10 characters, inclusive.
schedule will only contain capital letters [A-Z].
{"LSJUMB","SAE","AEP","SAE","LSJUMB","LSJUMB","AEP","LSJUMB"}
Returns: "LSJUMB"
LSJUMB throws 4 parties, while SAE and AEP throw only 2. Therefore LSJUMB is the only group that is legally eligible for alcohol probation.
{"LSJUMB","SAE","SAE","LSJUMB","LSJUMB","SAE","AEP","AEP","AEP"}
Returns: "LSJUMB"
All 3 groups throw 3 parties, so they are all eligible for alcohol
probation. The order in which they become eligible is "LSJUMB", "SAE",
"AEP".
{"KA","SX","TAXI","TAXI","SX","SX","KA","TAXI","KA","KA","TAXI","KA",
"TAXI","ST","KA","KA","KA","KA","KA","SX","SX","SX","SX","SX"}
Returns: "SX"
{"D","A","E","C","E","A","B","J","C","A","G","J","J","I","D","J","B",
"J","F","E","C","D","C","C","J","D","H","E","D","I","F","F","C","D"}
Returns: "A"
{"B","C","B","B","H","H","J","H","C","G","D","C","H","F","A",
"E","J","E","C","E","H","A","H","A","F","J","B","J","E","I",
"A","B","C","J","C","C","J","E","F","B","A","F","F","E","C"}
Returns: "B"
{"B","S","W","J","Y","B","H","E","A","V","U","H"}
Returns: ""