Sequential Growth of Molecular Complexity via Alternating Ground State and Photochemical Reactions