permutation p order set integer p1p2pn consist n distinct positive integer large n well denote n length permutation p1p2pnyour task find permutation p length n group number p1p2p2p3pn1pn exactly k distinct element