Domanda di colloquio di Liberty Mutual Insurance

Two coding questions with strings/arrays