structure code add maxsubsum solution