Devices emit a heartbeat every minute. Collapse consecutive heartbeats into uptime intervals: a gap of more than 5 minutes starts a new interval.
device_id, then interval_startCommunity-reported interview topic. Not an official company question and no affiliation is implied.
Run against the public tests, or submit to score against all of them.