Given a number n, write a method that sums all multiples of three and five up to n (inclusive).

public Integer sum(Integer n) {

}