Pregunta de entrevista de Illumina

Algorithm question on two egg issue