Second version of mz solution for Kata.Potter