Santosh Betha's submission of pattern2 | CodeChef