Years of Experience - 3 years 7 months
Position - SDE 2 at Amazon, India
Difficulty level: Hard.
I rate Amazon interviews as hard as the syllabus to cover is really vast. You have to be perfect in coding, LLD, HLD and Leadership principles.
Screening Round
Coding questions - I do not remember the exact questions but there was a simple String question (Passed all test cases) and one hard DP question (Passed all test cases).
LLD/HLD/Leadership principles - Since I applied for SDE2, I was also also assesed based upon HLD/LLD and leadership principle questions. There were certain use cases given. All these questions were MCQs. This round went well.
Cleared Screening
Having cleared the screening round, I asked for one month time as I had to give KT sessions in my existing organisation and the HR had told me that all 4 rounds will happen on the same day. I wanted to be mentally prepared for that as well.
After 1 month, the day finally came and all 4 rounds happened on the same day:
Round 1 (HLD) - Early morning, 1 hour
Round 2 (Coding) - Afternoon, 1 hour
This round went really well. The interviewer was nice and supportive.
Round 3 (LLD) - Afternoon, 1 hour
The round also went pretty well. The interviewer in this round was also nice and supportive.
Round 4 (Bar raiser round) - Late Afternoon, 1 hour
I knew that 2/3 rounds need to be positive in order to be eligible for Bar raiser. I thought that the decision might take some time and hence decided to go for lunch but was then informed that I am eligible to proceed for Bar raiser round.
It was scheduled for 3:45 pm which was in the next 30 mins. I decided to delay my meal.
Design a http client library that supports multiple retry mechanisms:
function retry(numberOfRetries: optional, typeOfRetry: optional, timeout)
1. Wait for incremental period of time for every retry (Eg. 1st retry after 1sec, 2nd retry after 2sec so on)
2. Wait for exponential period of time for every retry (Eg. 1st retry after 1sec, 3nd retry after 2sec, 3rd after 4sec so on)
3. Wait for constant time provided
4. Timeout
At the end, I was atleast satisfied with the solutions I had provided. The interviewer was an extremely chill person.
Post Interview Rounds
The interview process was a bit hectic as all the rounds happened on the same day. However, this has its own benefits. You might be in your ultimate form and clear all of them. The day might be good for you.
A couple of days later I was informed that I was selected. After that, some salary discussion also happened and I easily got what I had expected.
Suggestions:
Offer : https://leetcode.com/discuss/compensation/2297546/Amazon-India-SDE2-July-2022
Google Interview Experience:
https://leetcode.com/discuss/interview-experience/2328945/Google-L4-experience-(India)