Codingbats solution
Started on xyz problem