Eleven students, A, B, C, D, E, F, G, H, I, J and K, are sitting in a row in an NTSE class facing the professor.
(i) D, who is to the immediate left of F, is second to the right of C.
(ii) A is seated second to the right of E, who is at one of the ends.
(iii) J is the immediate neighbour of A and B, and third to the left of G.
(iv) H is to the immediate left of D and third to the right of I.
If E and D, C and B, A and H, K and F, interchange their positions, which of the following pairs of students is sitting at both the ends?