Log Agent Loop Steps to a Trace | Agentic AI Interview Problem