G SAN's submission of Pattern | CodeChef