Easy Time interview question

Describe how this lua code works