Learning idiomatic Elixir - Q1

That’s not going to work in this approach. The original code was trying to have a sliding window within the original list by appending or removing from both end of the window based on the numbers. Otherwise, you are right