Update Pesudocode

Added 'repeat as needed' on line 14