Schrödinger Interview Question

I was asked to build a string parser in python to represent molecules