Pergunta de entrevista da empresa CME Group

basic string/array question regarding counting all unique strings (unique being if the string and the string's reverse exists)