Infosys interview question

Palindrome sequence, how to delete null values in a row