Explanation
Assigning each person to their exam day from Monday to Sunday using the provided clues gives the following schedule:
Since G has an exam on Friday and two people are between M and G, M must have an exam on Tuesday (Wednesday and Thursday are in between).
Four people are between F and M, which places F on Sunday (Wednesday, Thursday, Friday, and Saturday are in between).
N is scheduled immediately after O. The only consecutive vacant days remaining are Wednesday and Thursday, so O is on Wednesday and N is on Thursday.
L does not have an exam on Monday, placing L on Saturday and leaving H with Monday.
The final order from Monday to Sunday is H, M, O, N, G, L, F.
Counting the days between H on Monday and L on Saturday gives Tuesday, Wednesday, Thursday, and Friday (M, O, N, and G), making a total of four people.