USAA interview question

You just have to create a function.