IBM Interview Question

String operations. Puzzle questions were also asked.