According to the expected output, you'd need something like:
function say(x)
{
return function (y) { alert( capitalize(x) + " " + capitalize(y)); }
}
Where capitalize makes the first character uppercase.