Separate paths

Problem Name:
Separate paths
Site:HackerEarth
Links:
Tags:
Problem setters: