Pregunta de entrevista de Axway

difficult situation during coding?