Tech Mahindra Interview Question

Deep into theoretical rather than implementing