AKUNA CAPITAL Interview Question

Variable length sliding window question