Domanda di colloquio di FactSet

Some two-pointer substring problem on Hackerrank