CodeChef Problem 6 - Holes in the text

same question but used a 'case' statement instead of 'if'