Solves Problem 12 in C++
Removes unnecessary binaries