Hi
While I understand the logic given in solution of question number 6,
however, generally one will interpret the given pseudo code as
if-elif-else structure.
It will help if you could provide some resource to correctly interpret pseudo code block
as it is more intuitive than its structure.
Regards