Fill the quiver

Problem Name:
Fill the quiver
Site:HackerEarth
Links:
Tags:
Problem setters: