GlobalLogic Interview Question

Python coding: second maximum number etc.