Cut the sticks

Problem Name:
Cut the sticks
Site:HackerRank
Links:
Tags:
Problem setters: