XTerminus Wars: Final Episode - This is the way

Problem Name:
XTerminus Wars: Final Episode - This is the way
Site:HackerEarth
Links:
Tags:
Problem setters: