Pergunta de entrevista da empresa Turing

They asked python mixed with permutations and combinations.