Microsoft interview question

How would you test the function above?

Interview Answer

Anonymous

2 Jan 2011

They were looking for programmatic test (not just manual verification).