Question: Write a function solution that, given a string S of length N , returns any palindrome which can be obtained by replacing all of the
Write a function solution that, given a string S of length N returns any palindrome which can be obtained by replacing all of the question marks in S by lowercase letters az If no palindrome can be obtained, the function should return the string NO
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
