Amazon Interview Question

Write a boolean search for this situation.