Unity Interview Question

How do you write a window function?