Question bank › Strings
Dsa Strings Medium

Anagram Detection

Write a program that reads two strings and determines if they are anagrams of each other. An anagram is a word or phrase formed by rearranging the letters of a different word or phrase. Ignore spaces and letter case. Example: Input: 'Listen' Input: 'Silent' Output: True Explanation: Listen and Silent are anagrams of each other.

Key concepts

stringsanagramscomparison

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.