Accenture interview question

render component based on given year as leap year