Intel Corporation Interview Question

Write a template method for add function.