Optimizing Array Segmentations Using TypeScript Maps | CodeSignal Learn