Visa Inc. interview question

two-pointers, sliding window and etc