Problem Description

Given two strings, check if they are anagrams (ignore spaces, case-insensitive).

Input Format

Two lines a and b.

Output Format

YES or NO.

Sample Test Case

Input:
listen silent
Output:
YES

Constraints

Total chars

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next