Explanation : Rule to find out the key in relation :-
Key ---> Rest of Attributes
As Key determies rest of the attributes
Key must include all attributes but can not be on RHS of any functional dependency i.e Only fields on RHS are determined.
An undetermined field must be in the key.
REST must include all attributes but NOT on LHS They don't determine anything so they can not be part of key.
If field is not in ANY FD, it must be part of the key
Now considering these 5 points we get D as Key.