Writing a function to obtain any element of Fibonacci sequence