As per the given above question , we have
Eight people, viz A, B, C, D, E, F, G and H are sitting in a straight line facing North. Each of them has passed a recruitment exam and must join the office in different months, viz January, February, March, April, May, June, July and August but not necessarily in the same order.
Clearly , A and the person whose joining date is in August are sitting at extreme ends of the line .