Springer Nature interview question

To write pseudo code on a given topic using if else.