Embed URL
LCM using ladder method