Microsoft interview question

Leetcode 636 as it is was asked