Pergunta de entrevista da empresa Synopsys

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