TBO.com interview question

3 leetcode medium hard dsa