Userdata interview question

Code a fibonacci sequence generator up to a value n.