Cognizant Interview Question

write few sample codes, including fibonacci series.