Amazon First Round through Onsite in Seattle 2018 Web Developer position

First round:
create a modal component using html css and javascript

onsite Interview:
interview 1: Design a card game:
you have 52 cards faced down, you reveal 2 cards at the same time if they match leave them open and open 2 more otherwise face them down and open two more. game ends when all cards are revealed.

interview 2: Design a blog application with comment section. describe technologies you used

interview 3: I was asked this question:

interview 4: lunch

interview 5 and interview 6: behavioral

Result: no offer.