solved LittleElephantAndDouble.java