Commvault Systems Round 2 Process for SDE Role

366
Sep 03, 2025
Sep 03, 2025

This article is a guide to help you get familiar with the problem statement for a simulation-based challenge often presented in technical interviews for software engineering roles.

IPL Closed Auction Simulation

The objective is to simulate an IPL closed auction where 8 teams bid for players from a common pool. Each player has a name, a base price, and a single skill (Batsman, Bowler, WK, or All-rounder). Each team has a total purse, a pre-defined budget for each skill, and an assigned bidding strategy.

The auction is conducted in batches by skill, with players presented in descending order of base price. As this is a closed auction, teams submit a single, private bid for each player, and the highest bidder wins. Teams are constrained to a maximum roster of 8 players, with no more than 2 players from any single skill.

Bids are calculated based on the team's strategy:

  • PAY-SAME : Bid 50% of the skill-specific purse.
  • PAY-MIN : Bid 60% of the skill purse, provided this amount does not exceed 15% of the team's total purse; otherwise, the bid is 40%.
  • GO-MAX : Bid 70% of the skill purse, capped at 2x the player's base price; if the cap is exceeded, the bid becomes 30%.

The simulation's final output must include the completed rosters for all teams and a list of all unsold players.


Below is a snippet demonstrating the main setup and execution of the auction:

Main.java

public class Main {

    public static void main(String[] args) {

        List<Player> players = PlayerPool.getPlayersList();
        List<Team> teams = new ArrayList<>();

        teams.add("rcb", 2000, Strategy.GO_MAX, "Virat Kohli", Arrays.asList(0.4, 0.2, 0.2, 0.2));
        teams.add("kkr", 2000, Strategy.PAY_MIN, "Sunil Narine", Arrays.asList(0.2, 0.3, 0.3, 0.2));
        teams.add("mi", 2000, Strategy.GO_MAX, "Hardik Pandya", Arrays.asList(0.1, 0.2, 0.4, 0.1));
        teams.add("csk", 2000, Strategy.PAY_MIN, "MS Dhoni", Arrays.asList(0.2, 0.1, 0.2, 0.5));

        Auction auction = new Auction(teams, players);
        auction.run();

        for (Team team : teams) {
            for (Map.Entry<Player, Integer> e : team.roster.entrySet()) {
                System.out.println(e.getKey().name + " " + e.getKey().skill + " " + e.getValue());
            }
        }

        List<Player> unsold = auction.getUnsoldPlayers();
        for (Player un : unsold) {
            System.out.println(un.name + " " + un.skill + " " + un.basePrice);
        }
    }
}

PlayerPool.java

public class PlayerPool {
    
    public static List<Player> getPlayersList() {
        
        Object[][] data = new Object[][]{
            
            {"Virat Kohli", "BATSMAN", 200},
            {"Joe Root", "BATSMAN", 180},
            {"Kane Williamson", "BATSMAN", 190},
            {"Babar Azam", "BATSMAN", 190},
            {"Steve Smith", "BATSMAN", 170},
            {"David Warner", "BATSMAN", 160},
            {"Rohit Sharma", "BATSMAN", 180},
            {"Shubman Gill", "BATSMAN", 150},
            {"Suryakumar Yadav", "BATSMAN", 140},
            {"Faf du Plessis", "BATSMAN", 130},
            
            {"Jasprit Bumrah", "BOWLER", 190},
            {"Pat Cummins", "BOWLER", 170},
            {"Kagiso Rabada", "BOWLER", 180},
            {"Shaheen Afridi", "BOWLER", 170},
            {"Mitchell Starc", "BOWLER", 160},
            {"Rashid Khan", "BOWLER", 200},
            {"Trent Boult", "BOWLER", 150},
            {"Wanindu Hasaranga", "BOWLER", 140},
            {"Yuzvendra Chahal", "BOWLER", 120},
            {"Jofra Archer", "BOWLER", 160},
        
            {"Hardik Pandya", "ALLROUNDER", 180},
            {"Sunil Narine", "ALLROUNDER", 160},
            {"Ben Stokes", "ALLROUNDER", 200},
            {"Shakib Al Hasan", "ALLROUNDER", 170},
            {"Ravindra Jadeja", "ALLROUNDER", 190},
            {"Glenn Maxwell", "ALLROUNDER", 160},
            {"Sam Curran", "ALLROUNDER", 170},
            {"Mitchell Marsh", "ALLROUNDER", 150},
            {"Marcus Stoinis", "ALLROUNDER", 140},
            {"Cameron Green", "ALLROUNDER", 150},
            

            {"MS Dhoni", "WICKET_KEEPER", 120},
            {"Rishabh Pant", "WICKET_KEEPER", 140},
            {"Jos Buttler", "WICKET_KEEPER", 190},
            {"Quinton de Kock", "WICKET_KEEPER", 170},
            {"KL Rahul", "WICKET_KEEPER", 160},
            {"Sanju Samson", "WICKET_KEEPER", 140},
            {"Ishan Kishan", "WICKET_KEEPER", 130},
            {"Nicholas Pooran", "WICKET_KEEPER", 150},
            {"Devon Conway", "WICKET_KEEPER", 120},
            {"Heinrich Klaasen", "WICKET_KEEPER", 160},
            
        };

        List<Player> players = new ArrayList<>();
        
        for (Object[] d : data) {
            String name = d[0];
            String skillString = d[1]; 
            Skill skill = Skill.valueOf(skillString);
            int basePrice = d[2];
            players.add(new Player(name, skill, basePrice));
        }
        
        return players;
    }
}

Commvault Round 1 – Online Assessment

This round is conducted online and consists of two sections:

MCQs Section

Duration: 25 minutes
Number of Questions: 17 (1 mark each)

Pattern (depends on role chosen):
SDE Role: MCQs mainly on OOPs concepts (but not just basics—questions dive deeper into classes, objects, and datatypes).
SDET Role: Broader set of MCQs covering OOPs , Operating Systems, DBMS, and Aptitude.

Coding Section

Duration: 40 minutes
Number of Questions: 3
Marks Distribution: 20, 25, 25 marks
Topics covered: Dynamic Programming, Graphs, Greedy algorithms.
Difficulty Level: Medium to Hard


Got queries or want to discuss more about this problem or the Commvault Systems Round 2 Process?

This was asked in my Commvault Round 2 Coding Round . If you found this write-up useful, please upvote and share it with others preparing for similar rounds!

Comments (1)