Saks OFF 5TH Interview Question

Write a code to manipulate a given string