Genpact Interview Question

Technical and few puzzle question