Retirement tax questions

No, I had purchased home as a rental (2nd) home, rented it out for two years, then lived in it for last year and recently moved out since I want to gift to my niece.