coin change scala solution