Koichi Namekata's submission of Pattern matching | CodeChef