Alarm.com Interview Question

5 gallon, 3 gallon bucket riddle