Solving chain of thought problem of AI