Company: Capgemini_24_jan
Difficulty: medium
Alex and James body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.6; color: #333; } h1, h2 { border-bottom: 1px solid #eaecef; padding-bottom: 0.3em; } code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; background-color: #f6f8fa; padding: 0.2em 0.4em; margin: 0; font-size: 85%; border-radius: 3px; } pre { background-color: #f6f8fa; padding: 16px; overflow: auto; border-radius: 3px; } pre code { padding: 0; margin: 0; font-size: 100%; background-color: transparent; } strong { font-weight: 600; } 02. Alex and James Problem Statement Alex and James are some of the finest wrestlers in the country who will be fighting against each other next week. The fight consists of N rounds, and each round has two kinds of points associated with it that are X i & Y i (1 ≤ i ≤ N). If Alex wins the i th round, he will receive X i + Y i points; ho