Guidewire Interview Question

How would you test the function in whiteboard problem.