Microsoft interview question

1 Leet code Hard, 1 Medium, and 2 Easy.