https://codeworld19.blogspot.com/2020/06/messages-order-in-c-hacker-rank-solution.html