All the amazon onsite interviews are done remotely now. I had 4 rounds of interview, one hour each.
Round 1: Tell me about yourself (10 mins) + LP questions (20-25 mins) + System design question was to design TinyURL Service
Round 2: Tell me about yourself (5 mins) + LP questions (20-25 mins) +
Leetcode question: https://leetcode.com/problems/verifying-an-alien-dictionary/
Round 3: LP questions (30 mins). The interviewer was very vague in this round and didn't gave much details on what does he want. The question was this "Suppose there is a shape which has 2 properties, color and number of sides. If we give you conditions for a valid shape (Ex: condition1 can be shape is yellow color and has 4 sides, condition 2 is shape has 8 sides etc.), determine if a given shape is valid or not." I made a shape class with these 2 properties and a "isValid" member function. The interviewer then asked if we want to pass this result to a sendmail function how will we do it. This is all he said really. so, I am assuming you dont call sendmail function from inside the class.
Round 4: Tell me about yourself (5 mins) + LP questions (20-25 mins).
Question 1: https://leetcode.com/problems/copy-list-with-random-pointer/
I knew the first one and did the first one in 10 mins so we still had time. He asked me one more.
Question 2: Connect all nodes in a tree which are on the same level as a linked list where the rightmost node points to null (this is also there somewhere in leetcode). I did level order order traversal to solve this one.