Angel One Interview Question

Longest palindrome, question on BFS implementation