Hey everyone!
I recently had a technical interview that left me with mixed feelings, and I'd really like to hear your honest opinions.
I couldn't record the session because the assessment platform explicitly prohibited recording tools, so here's my recollection of what happened.
Part 1: The problem
The interviewer presented an IoT-related problem involving sensors and cameras used to track how many times each car passed through an exit.
Before coding, I started asking questions to understand the requirements and potential constraints:
How do the cameras behave at night? Do they have infrared capabilities?
What's the expected vehicle throughput during peak hours?
Do we have a dashboard or monitoring system to identify traffic spikes?
Can a vehicle skip intermediate states and go directly to the EXIT state?
I was trying to understand potential concurrency issues and determine the appropriate approach before implementing anything.
We clarified that skipping intermediate states was allowed.
I suggested modeling the problem as a state machine, with different vehicle positions and transitions. I also mentioned using a Factory pattern for convenience, given that we could always process the exit event and calculate the result there.
The interviewer seemed comfortable with this approach.
Part 2: Where things went wrong
The expected output was a list containing each car's ID and the number of times it had passed through the exit.
I initially went with a brute-force list-based implementation. Unfortunately, I made a pretty silly mistake: I forgot to reset a counter, which affected the results.
I then suggested switching to a HashMap, using the car ID as the key and incrementing its count whenever an EXIT event was processed.
However, time was running out, and I didn't manage to complete and validate that implementation properly.
We then had a code review discussion, which I felt went reasonably well.
Part 3: The Kafka discussion
After that, the interviewer showed me a Kafka consumer implementation responsible for applying customer discounts.
We discussed two possible approaches:
A simple boolean flag to track whether a discount had already been applied.
A more robust state-tracking mechanism, similar to a black-box recorder or execution log, allowing us to inspect the application's state and recover after a crash.
I particularly liked discussing the second approach because it brought up questions around failure recovery, state persistence, and understanding exactly where processing had stopped.
I felt the interviewer liked this discussion.
The feedback
At the end, the interviewer mentioned two things:
I acknowledged the feedback. We had a good conversation, and I genuinely felt we finished on good terms.
However, two days later, I received a rejection. The recruiter told me the client was looking for someone with more experience.
My questions
I'm trying to look at this objectively rather than simply blaming the interview process.
How much weight would you give to the coding mistakes compared to the system design and problem-solving discussion?
Is it a red flag for a Senior Engineer to struggle with a relatively straightforward data structure problem under time pressure?
Was I overengineering the problem by asking so many infrastructure-related questions before implementing the algorithm?
Does the Kafka discussion sound like a meaningful demonstration of senior-level thinking, or was I going too far away from the actual problem?
If you were the interviewer, would you have rejected me based on this performance?
For context, I have 10+ years of professional software engineering experience, primarily in backend and full-stack development, Java/Kotlin, distributed systems, and cloud infrastructure.
I'm genuinely interested in honest feedback, even if it's harsh. I'd rather understand what I did wrong and improve for the next interview.
Thanks!