Citi Interview Question

Given a string with "?", return a palindrome if possible. EX: ?ab?b returns babab