Domanda di colloquio di Glovo

Two leetcode exercises, easy and medium difficulty