2: Anagrams

Write a method to check if two strings are anagrams or not.

 

Example 1

Input: one = cinema, two = iceman

Output: true

Example 2

Input: one = tar, two = car

Output: false
Difficulty:Easy
Topic:Array
Problem #:2