KPIT Technologies interview question

Generic class to and function to add two generic no’s