modified findWordFromNumber.java