Pregunta de entrevista de UST

asked to write a code for method overloading in c++.