Google interview question

How do you aggregate a function