IEEE Sample question 2014 for finding pinary palindromes