Goldman Sachs interview question

Time Complexity of a solution that I provided.

Interview Answer

Anonymous

9 June 2014

I don't remember exact problem. But it can be solved in recursive manner.