Roanuz interview question

To code based on a scenario