NVIDIA interview question

It is the first round where you are given a coding problem. The coding problem is one binary search problem, one sliding window problem. You are asked to run tests to verify.