Write a program (in any language that you like) that gets two words from user, and tells whether the words have the same letters and numbers of each letter. Comparison is not case-sensitive.
"apple" and "papel" both have one 'a', one 'e', one 'l' and two 'p', thus satisfying the given requirements.
"teen" and "NEET" also satisfies.
"sololearn" and "sololern" do not satisfy, bacause "sololearn" has one 'a' while "sololern" has no 'a'.
"appeal" and "apparel" also does not satisfy.
here you go in PHP
just edit the two words at the beginning of the code.
p.s. here there is c++ version