Agilysys interview question

Like palindrome inverted traingle program