Tech Mahindra Interview Question

Implode and explode