Bloomberg interview question

Leetcode problem pertaining to calendar management