Find the smallest number that appears in every row of a grid whose rows are sorted in increasing order, or return -1 if there is none.
Loading content...