Guidewire interview question

Online technical test - Writing pseudo code