Divide and destroy

Problem Name:
Divide and destroy
Site:HackerEarth
Links:
Tags:
Problem setters: