Psuedocode answer to problem 2