solution to say hi problem