McGraw Hill interview question

How to build one AI based chatbot?