Amazon Interview Question

Was given a logic assessment