solution for multiples of 3 and 5