Xoriant interview question

Write a program to reverse a string, two sum(leetcode)