CVS Health Interview Question

write code/thought process: how to identify if one of the fridges at store loses function