https://codetofun.com/php/lcm/
PHP Program to find LCM