Hexaware Technologies interview question

reverse the string ,ask about table connections and java