AKUNA CAPITAL interview question

Variable length sliding window question