This question evaluates parsing and string-processing skills, structured data reconstruction (building a call-tree), and error-handling reasoning, along with complexity analysis within the Coding & Algorithms domain.

Given a multi-line stack trace string from a single thread (e.g., each frame is in the form 'at Module::Function(file:line)'), design and implement a parser that: (