Santosh Betha's submission of pattern21 | CodeChef