Change problem 3 algorithm.