dunnhumby Interview Question

pallindrome coding was asked in c++