Update Problem014.java

Cleaned up code