Amaris.Ai interview question

Coding question which you can answer in pseudo code to test your logic.