Unity interview question

How do you write a window function?