Blue Yonder Interview Question

asked me to write a cursor to find the maximum number