IBM interview question

3 Leet code medium questions