Added solution to problem 5 ("Smallest multiple")
Simplified code & fixed a bug