Update Problem040.java

Deleted debugging code