Correct option is D
Given:
Seven friends A, B, C, D, E, F and G are sitting in a row facing South.
‘B’ and ‘F’ are not sitting together.
‘C’ is sitting second to the left of ‘D’.
‘A’ is not sitting with ‘C’.
‘D’ is sitting fourth to the right of ‘E’.
‘A’ and ‘B’ are not sitting together.
Only ‘E’ is sitting between ‘F’ and ‘G’.
‘G’ is sitting second to the left of one who is sitting second to the left of ‘A’.

‘A’ and ‘F’ are two persons who are sitting at the extreme ends.
Thus, correct option is (d).