Find the Substring With Maximum Cost

Find the Substring With Maximum Cost - Coding Problem | K5kC