Insert character after every n characters (backwards)

Write a function that takes two strings (a and b) as arguments. Beginning at the end of 'a', insert 'b' after every 3rd character of 'a'. Return the resulting string.
Get a premium membership to access this content: