Quest Global interview question

C++ java recursion