CodeRoad Coding Contest, test 2, AC.