Cyient Interview Question

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