Santosh Betha's submission of pattern9 | CodeChef