Go minmax
Intuition\ncompare min, max for required pairs\n\n# Approach\nCreate a minmax function and compare results\n\n# Complexity\n- Time complexity:\nO(1)\n\n- Space 
# Intuition\ncompare min, max for required pairs\n\n# Approach\nCreate a minmax function and compare results\n\n# Complexity\n- Time complexity:\n$$O(1)$$\n\n- Space complexity:\n $$O(1)$$\n\n# Code\n```golang []\nfunc minmax (a, b byte ) (byte, byte) {\n    if a < b {\n      return a, b\n    }\n    return b, a \n}\n\nfunc canBeEqual(s1 string, s2 string) bool {\n    n1, x1 := minmax(s1[0], s1[2])\n    n2, x2 := minmax(s2[0], s2[2])\n    o1, y1 := minmax(s1[1], s1[3]) \n    o2, y2 := minmax(s2[1], s2[3]) \n    return n1 == n2 && x1 == x2 && o1 == o2 && y1 == y2\n}\n```
['Go']