Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Thank you for the comments. In the actual problem, we are taking $k=n$ (the poset $P$ and the chain $\mathbf{k}$ are related). Thus, the answer I am looking for isn't quite the one given in MSE.