idiombook
8/5/2017 - 1:25 PM

[language: Swift, example: NPLTraining - 00]

[language: Swift, example: NPLTraining - 00]

let target = "stressed"

func solve() {
    print(reversed(with: target))
}

func reversed(with string: String) -> String {
    return String(string.characters.reversed())
}

solve()