Dassault Systèmes interview question

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