rework 99 problems page - logic and codes

Refactored logic and codes section to fit
new style of running through toplevel.