Doubt in implementation of problem

Problem - https://codeforces.com/contest/1064/status/F

Implementation - https://codeforces.com/contest/1064/submission/45073394

I do not understand what ‘lb’, ‘rb’, ‘re’ are storing