so what I have been trying to acheive is that if I iterate over arr and string and if they have the same letters then some action should be perfomed, for example - if ("both string and array have the same letters"){ "some action" }
const word = "hello";
const arr = ["o", "l", "e", "h"];
wordhave to be inarr, and every character inarrhave to be inword? Or just in one direction?