Create a function that takes a string str and performs simple encoding as per the following method:
[]Return the final string after modification.
simpleEncoder("Mubashir") ➞ "[[[[[[[["
// '[' for each character
simpleEncoder("Matt") ➞ "[[]]"
// ']' for both 't'
simpleEncoder("eD aBiT") ➞ "[[]][[[["
// Two spaces in between