IBM Interview Question

Reverse of string. query to join two tables