easy - accepted / - tried
Given a string contaning only a, b and c, remove all b and ac.
a
b
c
ac
removeChars('ab') // 'a'removeChars('abc') // ''removeChars('cabbaabcca') // 'caa'
What is the time and space complexity of your approach?
Always try to find a better approach.