Bolt interview question

Leetcode medium and hard algorithms.