It is defined that: the least common multiple of two integers a and b, usually denoted by LCM(a, b), is the smallest POSITIVE integer that is divisible by both a and b. So the result must always be positive.
So we must ignore the negative signs while finding LCM.