HashedIn by Deloitte interview question

Two sum and plaindrome check question.