Kata UpperCaseFinder with constraint of not mutating vaiables once assigned