Added problem 8 solution code with ParseInt