Fidelity Investments interview question

Coding Question 1: Print the string in reverse order (in place). without using inbuilt functions. Question 2: write a query to print distinct names of employees with a where condition he provided.