HashedIn by Deloitte Interview Question

Two sum and plaindrome check question.