Instructions: https://secure-media.collegeboard.org/apc/ap04_frq_compsci_a_35988.pdf
Quick Reference Guide: https://apstudents.collegeboard.org/ap/pdf/ap-computer-science-a-java-quick-reference.pdf
The correct answer outputs should be as follows.
******* A-1 *******
[cat, mouse, frog, dog, dog] 1 3 0
******* A-2 *******
[cat, mouse, dog, dog]
[mouse]
[mouse]