Find the Bugs in an AI-Generated URL Shortener
Company: Microsoft
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Technical Screen
Quick Answer: This question evaluates a candidate's ability to review AI-generated code for correctness, consistency, and robustness rather than write code from scratch. It tests skills in software engineering fundamentals such as spotting collision handling gaps, inconsistent return contracts, missing error handling, and concurrency safety issues. This code-review format is increasingly common in interviews to assess practical debugging judgment rather than purely conceptual knowledge.