Promatics interview question

Write the code for function overloading.