The correct option is D D
From the given conditions, the seating arrangement is as follows:
D F C B E A G
They are sitting around the table, hence D and G are sitting next to each other.
Thus, if C has to be on right of G, it has to replace the seat with D