import Foundation

func canBePalindrome(_ string: String) -> Bool {
    let reverseString = String(string.reversed())
    if string == reverseString {
       return true
  } else {
        return false
}
}


// Test Cases
canBePalindrome("tacocat")  // should return true
canBePalindrome("daily")    // should return false
canBePalindrome("a")        // should return true
canBePalindrome("aa")       // should return true
canBePalindrome("hannah")   // should return true
canBePalindrome("abc")      // should return false


let string = "hello"
let revereString = String(string.reversed())


