Gratin of leeks apples and squash