AppsFlyer interview question

sliding window type of problem