Given an array, remove all the 'a's and add one 'd' after each 'b', do it in O(n)
Click for Solution
[Insert Code]