Added pseudocode for problem 1