Company: Salesforce Amts_3april
Difficulty: medium
Salesforce Project Completion The Salesforce team is gearing up for a crucial developer showcase event, where each team member will present a banner representing their projects. These banners are represented by a string, referred to as banner . Some portions of the banners are incomplete, marked by the . character, indicating that those sections are blank and need to be filled. Each banner follows a distinct theme, represented by a single lowercase English letter (a-z). No banner should remain incomplete. A well-designed banner string is defined as one where every contiguous subsequence (substring) consists of identical characters. For instance, "bbb", "ppppp", and "g" are well-designed, whereas "bcb" and "ccce" are not. The objective is to replace the blank spaces in the banner string with lowercase English letters to maximize the total number of well-designed substrings. Note: A substring is any contiguous sequence of characters within a string. Example banner = ".a.bb." The optimal