Best to give a balanced diet, iron rich green leafy veggies, vitamin c enriched fruits like orange etc. There is no particular veggies or fruits that should be fed to a 2 year old to build better immunity. Give bits of everything!
https://www.babycenter.in/l25020392/foods-to-strengthen-your-babys-immunity-photos