Dominant Cells Python Hackerrank Solution