Cognizant Interview Question

WAP to print string in reverse order. WAP of any shorting algorithm. Difference bw Interface and Abstract class. Can we create instance of interface. some basic SQL queries.