The 2021 TCS coding rounds—specifically under the National Qualifier Test (NQT) and Digital drives—typically featured two coding questions that varied significantly in difficulty based on the candidate's target profile (Ninja or Digital). Total Questions: 2 coding problems.
1 ≤ N ≤ 10⁵
return max_sum