RCKR Software Interview Question

String reverse and string compression