Pregunta de entrevista de Signant Health

Logical problem asked in interview