Nokia Interview Question

string reverse, character replace in string