Pergunta de entrevista da empresa Barclays

String palindrome and permutation formula and generation