Amazon Interview Question

Asked two questions 1. sort using sliding window 2. binary search functional program