cos and cos−1 are effectively just opposite functions of each other. In other words, if cos(θ)=x then cos−1(x)=θ. That means if you take the cos−1 of a cos(θ) statement, you just get the original θ value back.
cos−1(cos(θ))=cos−1(x)=θ
So the given problem simplifies down to 7π4, the original θ value.