driivz interview question

How would you design a script for Fib