/******************************************************* * Copyright (C) 2015 Haotian Wu * * This file is the solution to the question: * https://www.hackerrank.com/challenges/palindrome-index * * Redistribution and use in source and binary forms are permitted. *******************************************************/ #include #include #include #include #include #include #include #include using namespace std; bool palindromechecker(string str) { int l=str.size(); for (int i=0;i> n; while (n--) { string str; cin >> str; if (palindromechecker(str)) { printf("-1\n"); continue; } int l=str.size(); for (int i=0;i