TCG GreenChem interview question

Questions on the previous work