avinash soni's submission of pattern9 | CodeChef