Can anyone tell me approach to solve CHEMFACT (chemical factory) from contest quarantine fun