Implemented repeat character n-times program