Explanation:Alice's hand can be rearranged as [1,2,3],[2,3,4],[6,7,8]. Each group has 3 consecutive cards.
Example 2:
Input:hand = [1,2,3,4,5], groupSize = 4
Output:false
Explanation:Alice's hand cannot be rearranged into groups of 4 consecutive cards. For example, [1,2,3,4] can be formed, but then card 5 is left alone and cannot form a group of 4.