https://www.hackerrank.com/challenges/vertical-sticks