Pregunta de entrevista de Synopsys

Find 3rd smallest element in sorted 2-D array.