Domanda di colloquio di NatWest Group

longest common prefix question in coding leetcode 14