Samsara Interview Question

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