Cyient interview question

simple programs like fibonaccci series, factorial. one two sql queries