Updates PDF with solutions and tested some changes in q3.java

long is a primitive type and Long is an object