Oracle interview question

Write a function for LCM