# [Vyxal](https://github.com/Vyxal/Vyxal), 11 bytes
```
ż-ȧZ⁽tṡfyĠ•
```
[Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLFvC3Ip1rigb104bmhZnnEoOKAoiIsIiIsIls1LCA2LCA4LCAzLCA5LCA0LCAyLCAxLCA3XSJd)

The pains of not having tons of array focused built-ins