Akatsuki vs Leaf

Problem Name:
Akatsuki vs Leaf
Site:HackerEarth
Links:
Tags:
Problem setters: