Would the following sentence, by the strictest standards, be considered correct by a linguist?

I gave to the officer in charge the blackjack. which I had found in the cookie jar.
acceptable