ZS Associates Interview Question

They asked an intro and gave the question