Vodafone Interview Question

Check two strings for same characters