Given a string of R and L shoes where each worker must have an even amount of R and L shoes in their batch, how many workers can you assign to the line?
Implement max_workers(shoes), where shoes contains only R and L. Each worker requires exactly two R shoes and two L shoes. Return 0 if either total is odd; otherwise, return the number of complete worker batches possible. Unused shoes may remain.
R and LR shoes and two L shoesdef max_workers(shoes):