Please explain the problem we are trying to solve here

We can construct two arrays lbest and rbest for the left hand side of the expression and for the
right hand side of the expression.