Zalando interview question

Write a function to bin the input collection's element into buckets