Amazon interview question

Cannot share as per policy