QA InfoTech Interview Question

Second max using one loop