Oakam interview question

Write a function on a whiteboard.