Choose the correct sentence from the following options.
O The dress which my friend, gifted me is my favorite.
O The dress which, my friend gifted me, is my favorite.
O The dress, which my friend, gifted me, is my favorite.
O The dress, which my friend gifted me, is my favorite.