Capgemini Interview Question

what is a function? what is difference between 1g,2g,3g and 4g?