Explanation
A complex sentence contains one independent clause and at least one dependent clause.
Independent clause: The boys did not go to the zoo
Dependent clause: because they went to the park
The dependent clause starts with the subordinating conjunction "because", which makes the sentence complex.