Prasanth Reddy's submission of Weird Algorithm | CodeChef