Workday Interview Question

To write a medium difficulty problem in a language of my choice.