The whole interview process is avaialble here: https://leetcode.com/discuss/interview-experience/671811/Amazon-or-SDE-3-or-June-2020-Reject
Question: Implement getOrder and addOrder methods (for an order management system). There was no additional info.
I started by asking if this was an algorithm or system design question, to which he replied that it was an algorithm question. I chose Java as my language.
I then, naively, spent too much time asking other questions, thinking this would be well perceived (since this is such an open ended question, I thought my requirement assessment skills were being evaluated). I asked:
My second pitfall was not heeding the interviewer directions to the letter. As I was designing the entities, he kept saying (yeah, just keep it simple), and eventually he made clear he simply wanted to see some database implementation interface. I suggested we go with an SQL based solution so that we would have ACID properties. I then explained that we could have an Ibernate implementation, and that I would have an interface to deal with generic CRUDE db interfaces. As I didn't have much time left, I ended up implementing only a skeleton of the solution:
How woul you approach this problem? I was not prepared for a problem that was not well-framed, so I did very poorly (I was expecting a LeetCode-like problem).