Refactaring answer.cc
Use std::min(a, b);