Tech Mahindra Interview Question

Explain a challenging coding problem