C3 AI Interview Question

Leetcode medium/hard, plus some behaviorals.