The subject it gave, because that is the action that is being taken.
Rate answer
The subject would be "I" because "I" is the person doing something. So when a person/place or thing is doing something such as giving a hug it will be the subject of the sentence.
Rate answer
If your question is not fully disclosed, then try using the search on the site and find other answers on the subject English.
Find another answersEnglish, published 28.04.2023