V Uday's submission of Pattern | CodeChef