Update Problem017.java

Added full solution