Got this today on the SDE OA. Does anyone know how to solve it? I passed 6/15 test cases so pretty bummed out:
https://fastprep.gitbook.io/amazon-2024-oa/2023-june-aug/amazon-warehouse