Avishake Maji's submission of pattern30 | CodeChef