OSI Digital interview question

some sql queries and fibonacci series code