Pergunta de entrevista da empresa Angel One

Longest palindrome, question on BFS implementation