Microsoft interview question

Common question about combining ranges