Improved CodingContest's Soltuion class to allow better unit testing.