Created additional condensed (single-line) functional implementation for the challenge