In 1950 mathematician Alan Turing pondered this question and invented an elegant game to answer it: Let a human chat
via Teletype with a computer and another human; if the person can't determine which is the computer, then it meets Turing's standards for «thinking.»