solve multiples of 3 and 5 in scala