Solution for smallest multiple