Eight persons A through H each of a different profession among engineer, doctor, teacher, policeman, singer, mechanic, painter and politician are sitting in a row of eight seats facing the dias. Their arrangement is as follows:
(i) Neither the teacher nor the policeman is sitting at the end.
(ii) The engineer is adjacent to H, who is fifth to the left of the painter.
(iii) The painter sits adjacent to G, the policeman, who sits fifth to the right of the engineer.
(iv) E, the politician sits in the fourth or fifth seat from either ends and is sitting to the immediate right of the mechanic.
(v) C is second to the right of the singer, who is exactly between the teacher and A.
(vi) F is exactly between B and the singer.
Source : time.com