K-th Alternating Permutation | CodeGround