https://slothcoders.blogspot.com/2021/03/id-and-ship-codechef-solution.html