ZS Associates Interview Question

calculate derivative