Help me write this function?

Printable View