Solutions
Description:
The one who likes animated show is giving exam in the month having less than 31 days (i.e. Feb. or April)
Cae-1 the one who like animated show is giving exam in the month of February.
Case-2 the one who like animated show is giving exam in the month of April.
There is one person between O and the one who like animated shows, thus:
The one who like Comedy show is giving exam immediately before O. thus it eliminate our case-2.
Q is giving exam immediately after O.
Only two persons are giving exam between Q and P.
Since in case 1 there is no possibility for U, as it is given that U is giving exam in the moth having less than 31 days. Thus it eliminates our case-1.
So the possible place for U is in the month February.
T is giving exam immediately after U. Thus T is giving exam in the month of March.
Only one person is giving exam between O and the one who like reality show.
Thus,
It is given that the one who like History show is giving exam in the month having less than 31 days.
Thus it implies that U like History show.
And as mentioned that one who likes family show is giving exam immediately before the one who like Thriller show. Thus it is clear that Q like thriller show and O like family show.
T is the one who like Action show.
As given in the information S does not like comedy show thus S like reality Show and R is the one who like Comedy show.