Nature Wager (Tree Music Vs Stomach)

You should get rid of the sub-dominants (out of scale notes) which are in the chords of the end sections.

I don’t quite know exactly what that means, I have very limited knowledge of music and how it’s put together. Can you give me an example?