Siemens Interview Question

How would you test this function?