TechnoPurple Interview Question

4. count Occurrence in String test = 'aabaacbasca'