Because printing a string and returning it are very different (even though they behave similarly in the REPL). In particular, print(ln) return nothing; you’d need to implement your function as
function greet_nagiconomi()
return "Bonjour!"
end
for it to pass tests.