KPIT Technologies interview question

Write code for method - overloading