WTW Interview Question

when we use agile and when waterfall