using recursion
tried fibonacci but is slower