Frage im Vorstellungsgespräch bei Aristocrat

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