Rishi Mohan Jha's submission of Pattern B | CodeChef