Popmenu Interview Question

How would you prioritize these cases?