max product cutting, geeks for geeks