WhatsApp Interview Question

detect whether two strings are anagrams or not.