Add solution to Problem #5: Smallest multiples (LCM).