Pregunta de entrevista de WhizAI, an IQVIA business

Coding question relating to logical problems