Given two integers,
nandk, an alternating permutation is a permutation of the firstnpositive integers such that no two adjacent elements are both odd or both even.Return the k-th alternating permutation sorted in lexicographical order. If there are fewer than
kvalid alternating permutations, return an empty list.