Maximizing ABCD Occurrences in a String
Given a string S containing capital letters A, B, C, and D. You can choose a subsequence, that makes an occurrence of ABCD by combining all the letters of that subsequence and removing it, the task is to output the maximum number of times the operation can be applied, If in each operation subsequenc