AT&T interview question

write a function to return fibonacci number