solution 3 pseudocode