Cognite interview question

Phase 1: Generic code interview