Create answer_otherApproach.java

running code
http://ideone.com/PFFdWt