Avishake Maji's submission of pattern29 | CodeChef