Solution for merge intervals
atoi