Fibanocci Meets GCD

Hey could you please check my code and tell me where am i getting wrong ??
Code link - https://ide.codingblocks.com/s/315051

@msid78641
Issue is with your return of lcm when query is out of bounds


Have a look at this code for reference
For TLE use reference variables and Fast IO