Instructions: https://apcentral.collegeboard.org/pdf/ap-computer-science-a-frq-2017.pdf
Quick Reference: https://apstudents.collegeboard.org/ap/pdf/ap-computer-science-a-java-quick-reference.pdf
The correct answer outputs should be as follows.
Part A:
[1, 5, 7, 0, 4]
[0]
Part B:
[7] -> true
[1, 3, 5, 6] -> true
[1, 3, 3, 6] -> false
[1, 5, 3, 6] -> false
[6, 5, 3, 1, 0] -> false