A subject of a sentence is the person, place or thing we are talking about. Generally, if we can replace the subject with a subject pronoun (I, you, he, she, it, we, they), the correct choice to refer back to it is by using the relative pronoun who.
An object in a sentence is the person, thing or place who is on the receiving end of the action. If we can replace the object with an object pronoun (me, you, him, her, it, us, them), the correct choice to refer back to it is by using the relative pronoun whom.
Whose (the possessive from of who) is used in speaking of persons, animals and also things without life.
Which is used for things without life and for animals.
Here, Option B is correct. We use 'who'. Although the object is being referred to in this sentence but it functions as the subject, like 'he made the mess'. He is in the nominative case, hence 'who' needs to be used.
Consequently, the other three options cancel out.