Question d’entretien chez Aristocrat

Write a program to check if a string is palindrome or not, questions to calculate probability.