Shivshanker Singh's submission of pattern29 | CodeChef