Reverse A String Logical Programming Questions