There are 2 ways to reverse a string in Java
the fastest way is to use StringBuilder class and reverse the string using its function
the second way is to reverse it manually one by one, we iterate from the last character of the string to the first character of the string
I will explain them in this video