How does nutrition influence mental well-being and overall brain function?

How does nutrition influence mental well-being and overall brain function?