Solution for Insert Interval