Genpact Interview Question

some general math calculations