problem24, (WIP)

Still working on alogrithm