Amazon Interview Question

Write a program that computes the Fibonacci number that is less than or equal to a given number.