Ski season is approaching! You work at a ski resort and must ensure the slopes are fully covered with snow. You have a slope with indices from 0…N, and a collection of snow-making machines installed along the slope.Each machine is a tuple (index, range) meaning the machine sits at index and can cover the slope…