Virtusa Interview Question

Fibonacci series in java and SQL query