Harshit Kumar Gupta's submission of pattern7 | CodeChef