Brackets all over

Please tell why I am getting wrong answer using recursive solution.