MAQ Software interview question

Strings in Java, puzzles etc