https://videosashka.com/watch/9CtJal0GjEA/python-hackerrank-solutions-itertools-permutations