FACE Prep interview question

Like Fibonacci sequence order coding question