← Home
For problem statement at 0-999/500-599/510-519/518/problemA.txt this is a correct solution, but verifier at 0-999/500-599/510-519/518/verifierA.go ends with All tests passed can you fix the verifier? ```go
package main

import (
    "fmt"
)

func main() {
    var s, t string
    fmt.Scan(&s, &t)
    
    result := []byte(s)
    n := len(result)
    
    i := n - 1
    for i >= 0 && result[i] == 'z' {
        result[i] = 'a'
        i--
    }
    if i < 0 {
        fmt.Println("No such string")
        return
    }
    result[i]++
    
    if string(result) < t {
        fmt.Println(string(result))
    } else {
        fmt.Println("No such string")
    }
}
```