Pergunta de entrevista da empresa Blue Yonder

asked me to write a cursor to find the maximum number