ZS Associates Interview Question

questions about the problem that was presented to us