Springer Nature Interview Question

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