Create exercise10.java

Exercise 10- String HW