S->abS|ScS|d|c
First of S:{a,d,c}
Follow of S:{$,c}
The follow of the starting symbol always contains "$".
The follow of a symbol is what would appear after that symbol if that symbol appears in the right hand side of the production. So in this case c comes after S so it would be in the follow of S and $ has to be there as S is the starting symbol. I hope u got it.Now for the definition of first and follows:
https://www.cs.uaf.edu/~cs331/notes/FirstFollow.pdf