Amazon interview question

1st round is coding 2nd round is behavioural