Question d’entretien chez Priceline.com

JavaScript coding test: there are two strings, and compare them. If they both have some characters even different orders, you should return 'true'.('abc' and 'acd' are equal). otherwise, return 'false'.