LeewayHertz interview question

Spiral Matrics, Remove Duplicate elements form string, string combination etc