Domanda di colloquio di IBM

Two "leetcode style" questions, one algorithms based, one database.