# [K (oK)], 9 bytes

    &/2=#:'.=

[Try it online!][TIO-jxvfmzoj]

In mobile, explanation to follow. 

[K (oK)]: https://github.com/JohnEarnest/ok
[TIO-jxvfmzoj]: https://tio.run/##y9bNz/7/X03fyFbZSl3P1lzB0FjBUsFIwdAASJiAKLCQiYLl//8A "K (oK) – Try It Online"