Amazon interview question

Was given a logic assessment