Cognizant Interview Question

Self invoking function