package main
import (
"fmt"
"unicode"
)
func reverseCase(s string) string {
result := []rune(s)
for i, r := range result {
if unicode.IsUpper(r) {
result[i] = unicode.ToLower(r)
} else if unicode.IsLower(r) {
result[i] = unicode.ToUpper(r)
}
}
return string(result)
}
func main() {
input := "ABC++xyz"
output := reverseCase(input)
fmt.Println(output)
}
/*
run:
abc++XYZ
*/