Another one of my solutions to the PS of CodeChef.com  .