Convert stack samples to execution trace | Anthropic Interview Question