Shivshanker Singh's submission of pattern7 | CodeChef