Pergunta de entrevista da empresa Axway

difficult situation during coding?