IBM Interview Question

one question is on graph and one is open the sliding window question.