Capital One interview question

What does this function do?