my attempt at solving leetcode 1704: determine if string halves are alike [SOLVED]

Published --