Company: Linkedin_31aug
Difficulty: medium
Maximum Redundancy Problem Description There are n servers in a data center. The operational status of each server is given by the binary string servers , where servers[i] = '1' if the i-th server is operational, and servers[i] = '0' if it is not. The data center can perform at most one operation: select a consecutive sequence of servers and switch their operational status. This means that operational servers in the selected sequence become non-operational, and non-operational servers become operational. The redundancy of the system refers to the number of unique values representing the number of operational servers across all possible configurations after the operation. Each distinct count of operational servers contributes to this redundancy. Determine the maximum redundancy of this system. Function Parameters: string servers : a string indicating the operational status of servers. Returns: int : the number of distinct operational servers at any moment. Examples Example 1: Input: ser