https://leetcode.com/problems/max-consecutive-ones-iii/submissions/1472185785/ (question was worded differently with P, NP instead of 0,1 but the crux of the problem remained same). The interviewer just mentioned the array on the screen and the maxCount and told the problem description orally so it was tough to follow first what the problem actually was.)
https://leetcode.com/discuss/interview-question/4288566/E4-meta-phone-screen-qs
Make sure you address all the test cases while solving this like departure length = 0, arrival length = 0, arrival length > departure length and departure length > arrival length. Don't assume arrays are of same length as mentioned in some of the solutions in this post , this would be incorrect.