solved problem 12, algo still shit