TigerConnect interview question

Write a function to calculate the nth Fibonacci Number.