In the given sentence, identify the segment which contains the grammatical error
My father had given me everything whose I needed when I was in the hostel.
1
My father had given
2
me everything
3
whose I needed
4
when I was in hostel.