What is the maximum value of N for subtasks 1 and 2? Is it 250,000 for both the cases?
100 & 1000 respectively…