NEC Corporation Interview Question

SQL queries Fibonacci series Odd/Even number Printing diagonal of matrix using one loop.