Let $F:I \times I \to X$ be a continuous map, and let $f,h$ and $k,g$ be paths in $X$ defined by $$f(s) = F(s,0)$$ $$g(s) = F(1,s)$$ $$h(s) = F(0,s)$$ $$k(s) = F(s,1)$$ Then $f \cdot g$ is homotopic to $h \cdot k$
I tried like $F(s,t)F(1−t,s)$, but it clearly will not work(not even well defined). Then I thought about finding a way to sort of relableling $I×I$ to $I$, letting the homotopy starting from the lower left of the square. But I cannot find an explicit way to write down this.