Wegmans Food Markets Interview Question

Pretty basic questions