Mars Exploration -

ZeeshanAli-0704 - Aug 22 '22 - - Dev Community
function marsExploration(s) {
    let actualStr = "SOS";
    let misMatchCount = 0;
    let j = 0;
    let k = 0;
    let emptyArray = [];
    let n = [];

  while (j < s.length) {
    if (s[j] !== actualStr[k]) {
      misMatchCount++;
    }
    j++;
    k++;
    if (k > 2) {
      k = 0;
    }
  }
  return misMatchCount;
}
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player