A metaphor does not contain like or as like a simile do.
It might be said that the correct sentences is C <span> "She is the person whom he had found sleeping in the library". This is because whom is correctly used.
In the case of A</span><span> and B, They are incorrect because instead of who it should have been whom, the correct pronoun.
On the contrary; sentence D should be who instead of whom. </span>
He should probably expect anger in return