algo3: hw5: problem pseudocode added