Pergunta de entrevista da empresa Bloomberg

a bit about my recent task in my current company, a mid level LC problem