String1 and string2 pattern.java

  /**please make sure you replace word1 and word2 with given string names.replace the main class with given method name */ 
eg aaaa --- gggg returns 1
   asdf --- ghjk returns 1
   aasd --- fghj returns 0