Create a function.
{log start1{log start2 { ......}log end1}log end2}
Return true if log start is end.
return false if log started but not end.
Input 1: {log start1{log start2{ } log end1}log end2}
output:true
input 2: {log start1{log start2{ } log end1}
output: false.
can anyone please give solution for this .