Question

Which one of the following statements is correct?Whom was she talking?, Whom was she talking to?,To whom she was talking?,To whom she was talking to?