Pergunta de entrevista da empresa Illumina

Algorithm question on two egg issue