find the runner-up score hackerrank solution in python 3