Program to find string-mirror