HCLTech interview question

stack reverse, palindrome using recursion, then 3 basic program