permutation with resriction

visit shbcf.ru