One liner solution
Codingbats solution very similar to mine
Easy as this one liner