Added solutions for duplicate and filter-cap