Visa Inc. Interview Question

Coding Question: Given two integers a and b, generate a string containing the characters 'a' exactly a times and 'b' exactly b times such that no character appears more than two times consecutively.