Find and Fix C++ Ownership Bugs: Double Free, Shallow Copy, and Object Slicing
Company: Sig
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Onsite
Quick Answer: This question evaluates a candidate's understanding of C++ object lifetime, copy semantics, and polymorphism. It tests the ability to spot shallow-copy bugs like double free and object slicing, and to reason about the Rule of Three/Five, commonly asked to assess practical memory-management and design skill in software engineering interviews.