Ad
  • Custom User Avatar

    Note: this only works because of a lack of test coverage

    a = "abcd"
    b = "abe"
    
    solution(a, b)
    # => "abcdabeabcd"
    

    "abe" is greater than "abcd", but also shorter.