Samsara interview question

not a leetcode problem, It's a story like a problem