Dying Olive plant

I inherited this young olive tree plant from a friend in September 2022. For 6 months it sat in a Southeast facing window. For a while it did okay, but then started to wilt. I think I was over watering…