Finding the problem is the first task based on the input, output format and exe file provided. Then think the logic and code the same.
The task in this problem is to find if input string is anagram or not. An anagram of a string is another string that contains same characters, only the order of characters can be different. For example, “abcd” and “dabc” are anagram of each other.
After having number of test cases as input, each test is to be inputted and processed. Each test case contains a string. Check if string is anagram or not. If yes print true followed by number of consonants in the string else print false.
Author’s solution can be found here
Exe file for the problem can be found here