Mark the tick against the correct answer in the following: The principal value of \cos ^{-1}\left(\frac{-1}{\sqrt{2}}\right) is
A. \frac{-\pi}{4}
B. \frac{\pi}{4}
C. \frac{3 \pi}{4}
D. \frac{5 \pi}{4}