How to find LCM of 3 numbers