Gusto interview question

implement reduce() implement a way to divide deposits across accounts both in ruby