Codingbats simple 1 line solution