Function Overloading

Function overloading is the type of static polymorphism. Function overloading means functions with same name but…