Update Part1.java

This set of code takes in a string and reverses it.