I am trying to implement a function in JavaScript called canBeFormed that does this:
canBeFormed
const string1 = \'hel