This is my solution for the tape equilibrium problem from the codility test