MagView interview question

Competency test: Solving pseudo code, and writing the pseudo codes.