Axway interview question

difficult situation during coding?