p2_2.java

not a hard question, but need be familar with the recursive design.