Which of the following is correct?

​What is that dog doing over their?

What is that dog doing over they're?

What is that dog doing over there?

What is that dog doing over thare?

The correct sentence is: "What is that dog doing over there?"