Company: Salesforce Amts_3april
Difficulty: medium
Salesforce Project Completion A growing enterprise-software company is prepping for a major developer showcase, where every team member will present a banner representing their own project. Each banner is a string, called banner , and parts of it are still unfinished, marked with a . character to show which sections are blank and need filling in. Each banner has its own single-letter theme, one lowercase English letter (a-z), and by the end no banner may be left with any blanks. A banner string counts as well-designed if every one of its contiguous substrings is made of a single repeated character. For example, "bbb", "ppppp", and "g" all qualify, while "bcb" and "ccce" do not. Your goal is to fill every blank in the banner string with a lowercase English letter so as to maximize the total count of well-designed substrings. Note: A substring is any contiguous run of characters within a string. Example banner = ".a.bb." The best way to fill it in is "aabbbb". The well-designed substring