Help me in solving BLAST3 problem

My issue

can any one plz help in this problem

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	return 0;
}

Problem Link: BLAST3 Problem - CodeChef

@yaswanth15
i’ll give u some hints.
if n%3==1 then ans would be yes u can always make palindrome of size 1.
and if u some how able to make the starting and ending character of the string same then it would be yes always.