Hacker Rank : removing duplicated file