HolidayCheck Group interview question

What is a tailrec function ?