Doing some leetcode problems in Java 1.7. Hoping to later move to Java 1.8