View this solution on Exercism
https://exercism.org/tracks/rust/exercises/hamming/solutions/YasinVeliyev
Tags: emptystring