Pergunta de entrevista da empresa Murex

Three leetcodes, two is the string and another is array