Domanda di colloquio di Zeta

One hard and one medium level string based question from leetcode.