Accenture interview question

Date function