Completed nestedNumbers2.java