Easy Time Interview Question

Describe how this lua code works