Tech Mahindra Interview Question

WAF function