avinash soni's submission of pattern2 | CodeChef