Dassault Systèmes Interview Question

1. remove duplicate elements in array using filter method 2. check string anagraphy