Learnixo
Challenges

Reverse a String

beginner 50 XP

Problem

Write a method that reverses a string without using built-in `Reverse()` methods. Handle null and empty strings gracefully.

Test Cases

Basic reverse
Input: "hello"
Expected: "olleh"
Five characters
Input: "abcde"
Expected: "edcba"
Empty string
Input: ""
Expected: ""
Single character
Input: "a"
Expected: "a"

Hints

AI Assistance