Rite Aid Interview Question

all very simple