EvenUp interview question

ML basic concepts. And a live coding problem about array.