Update Intervals.cpp

Input: http://pastebin.com/szZSBMaq