Determine the winner

Problem Name:
Determine the winner
Site:HackerEarth
Links:
Tags:
Problem setters: