ABC Interview Question

Normalization , Java , revering the string