NICE Actimize interview question

String Reversal Pointers SQL queries some puzzels