Hey there guys just wanted to say hi

I have a question about the SES light. Yesterday it came on with the code that read P161 which i looked up and states O2 Sensor Heater Circuit Malfunction (Bank 2 Sensor 2),but dunno which to replace the one before the cat or after the cat.??? Your help would be awesome..thanks