Cognizant interview question

Codeing in python (fib , arrays and strings)