isNStraightHand = function (hand, groupSize, count = new Map()) {
    const map = getFrequencyMap(hand);/* Time O(N) | Space O(N) */
    const sortUniqHand = getUniqueHand(hand);/* Time O(N * Log(N)) | Space O(N) */

    return search(groupSize, map, sortUniqHand);/* Time O(N * K) */
}
https://leetcode.com/problems/hand-of-straights/
Time O(N * K) | Space O(N)
@param {number[]} hand
@param {number} groupSize
@return {boolean}