No problems found.
Expected Time Complexity
O(n²)
Expected Space Complexity
O(1)
Input:
"babad"
Output:
"bab"
"cbbd"
"bb"