Cruise interview question

They asked a hard leetcode question