itertools permution hackerrank solution

welcome to shbcf.ru