Write a program that defines a template function named add(). This function takes two arguments, add two variables and then return the sum.
In main function, define two variables of type int, two variables of type float and two objects of type ‘String’. Now call the add() function three times for these different data types.