Find the Runner-Up Score!

  • + 3 comments
    if __name__ == '__main__':
    n = int(input())
    arr = list(set(sorted(map(int, input().split()))))
    print(arr[-2])
    

    Why does the above code not pass 3 test cases ?