Oracle Interview Question

Write a function for LCM