In answer there is problem

when it shows output it shows in the form
( ( ) )
( ) ( )

if i want the answer as
( ) ( )
( ( ) )

then what to do
becoz in assignment problem to the answer is in this form

hey @TheSourabh
just put closing bracket recursion call before opening call