Domanda di colloquio di IBM

Two leetcode mediums, pretty reasonable