Convert problem17 to cmake