Company: Titan_27sep
Difficulty: medium
Minimum Task Transfers Problem Description In a post-apocalyptic world, Eren, Mikasa, and Armin are part of an elite team tasked with reclaiming lost territories. The missions they undertake are crucial for humanity's survival, and they have developed a very distinct strategy for handling them. Each mission consists of n different tasks, and they prefer to split these tasks in a particular way to ensure success: Eren always takes the initial tasks, dealing with the more straightforward challenges from 1 to i. Armin, the strategist, steps in next, taking charge of the middle tasks, covering everything from i to j. Mikasa, the team's strongest member, handles the toughest tasks towards the end, from j to n. Their teamwork is smooth when they handle missions this way: Eren leading, Armin holding the middle, and Mikasa finishing strong, with i <= j <= n. However, after one particularly chaotic mission, the tasks got mixed up, and each of them ended up with random tasks, out of their