Update Elephant.java

Added fringe cases