Perform matrix Candy Crush elimination | Uber Interview Question