LeetCode
Three Equal Parts
Click
here
for an explanation.