Ad
  • Custom User Avatar

    Why not do it reverse, requirements be str1 and if for second loop we receive null we will return false?
    We will not need to go through the entire (second)loop if a character is missing