Adding alternative way for smallestMultiple