Update Insert Interval.java

refactor