Rewrote solution for 16 to abuse python even more