HolidayCheck Group Interview Question

What is a tailrec function ?