Given a string consisting of only lowercase letters, this program generates a new string with the same letters in reverse order. For example, an input of "abcdefg" would produce an output of "gfedcba".
The candidate's solution is correct and uses the built-in function reversed(). The time and space complexity of the solution is O(n).
Evaluated at: 2022-11-11 03:47:44