Help me in solving PALLIND problem

My issue

can somebody explain solution to this question in detail.

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here

}

Problem Link: Bob and Pallindromes Practice Coding Problem