Mastercard Interview Prep (Software Engineer / Lead)

Mastercard’s India campus loop is unusual in what it does first. After the coding round, an entire technical interview is spent on your resume and projects, implementation by implementation, asking why you chose each technology before anyone examines your fundamentals. The fundamentals round comes after.

The coding round itself is the filter by volume rather than by difficulty. Reported problems are easy to medium on arrays and strings, but one campus drive advanced only twenty-four students in total. Clear it, and the rest of the loop is about depth and communication.


Interview Process

Stage Duration Focus
Online Coding Round 60-90 min 2 questions, easy to medium. Arrays and strings reported
Technical Interview 1 30-40 min Resume and project deep dive. Implementations and technology choices
Technical Interview 2 45-60 min DSA, OOP, DBMS and SQL. Applied knowledge
HR Round 20-30 min Interpersonal skills, cultural fit, suitability

The coding round is where the numbers fall. One campus drive is reported to have shortlisted twenty-four students in total, which makes it a volume filter rather than a difficulty one. Solve both problems cleanly and you are in a much smaller room.

Experienced-hire and US loops are reported differently and less consistently: a recruiter screen, an online assessment on HackerRank or Codility, a technical phone screen, then three or four back-to-back rounds described as an engineering manager round, a technical specialist round and a bar raiser round. Three to five weeks end to end.

Lead-level reports describe Java-centric rounds plus discussion of the software lifecycle, code quality and best practice, and a final round that presents a problem and asks you to design it for millions of users with reliability and rollback in mind.


What Mastercard Actually Tests

Mastercard has a small reported question pool — 12 tagged problems (5 Easy, 6 Medium, 1 Hard). That is too few to break down by percentage, but it is useful information on its own: a narrow pool means the specific problems below carry real weight, and your odds of drawing one you have already solved are much better than at a company with a two-thousand-problem list.

Work through the whole list rather than sampling it, and lean on the process and design sections on this page for the rounds the question data cannot tell you about.


System Design (HLD) Problems Asked at Mastercard

# Problem Difficulty Link
1 Payment System Advanced Read →
2 Digital Wallet Advanced Read →
3 Rules Engine (Fraud Rules) Advanced Read →
4 Unique ID Generator (Transaction IDs) Intermediate Read →
5 Message Queue Intermediate Read →
6 Metrics and Monitoring Intermediate Read →
7 Distributed Cache Advanced Read →
8 Rate Limiter Beginner Read →

LLD / Machine Coding Problems Asked at Mastercard

Payments low-level design rewards getting the money-handling invariants right. Idempotency, retries and reconciliation matter more than clever structures.

# Problem Difficulty Link
1 Payment Wallet Intermediate Read →
2 Order Management Advanced Read →
3 Queue Management Intermediate Read →
4 Rate Limiter Beginner Read →

DSA Problems Asked at Mastercard

12 problems across 7 pattern groups. Each group is allocated in proportion to its real share of Mastercard’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. All 3 on the list.

# Problem Pattern Difficulty Link
1 Best Time to Buy and Sell Stock DP Easy Solve →
2 Coin Change Complete Knapsack + Knapsack Problem Medium Solve →
3 Coin Change II Complete Knapsack + Knapsack Problem Medium Solve →

Backtracking

Enumerate with pruning. Interviewers look for a clean choose, explore, unchoose loop and a real complexity bound. All 2 on the list.

# Problem Pattern Difficulty Link
4 N-Queens Algorithm X + Backtracking Hard Solve →
5 Word Search Backtracking + DFS Medium Solve →

Strings

Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 2 on the list.

# Problem Pattern Difficulty Link
6 Fizz Buzz Simulation + Math Easy Solve →
7 Valid Anagram Sorting + Hash Table Easy Solve →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 2 on the list.

# Problem Pattern Difficulty Link
8 Two Sum Hash Table + Array Easy Solve →
9 Rotate Image Matrix + Math Medium Solve →

Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. One on the list.

# Problem Pattern Difficulty Link
10 Longest Palindromic Substring Manacher + Two Pointers Medium Solve →

Stack & Monotonic Stack

Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. One on the list.

# Problem Pattern Difficulty Link
11 Valid Parentheses Bracket Sequences + Stack Easy Solve →

Intervals, Greedy & Sorting

Sort, then make a local decision you can defend. Expect to justify why greedy is safe here. One on the list.

# Problem Pattern Difficulty Link
12 Gas Station Greedy Medium Solve →

Behavioural Round

# Question
1 Tell me about a time you helped a teammate succeed at some cost to yourself.
2 Describe handling conflict with a stakeholder who outranked you.
3 How have you influenced a decision without authority?
4 Tell me about a production incident and your role in it.
5 Why Mastercard, and what do you know about how payments actually work?
6 Describe a time you pushed for code quality against delivery pressure.
7 Tell me about feedback that changed how you work.

Mastercard uses its own term, Decency Quotient or DQ, for the behavioural bar, and it is reported as an explicit scoring dimension in later rounds alongside results and innovation. The first question above is the DQ question in its most recognisable form. A senior engineer or director is reported to run that round, blending architecture with it.


Tips for Mastercard Interviews

  1. Treat the coding round as the gate it is. Two easy-to-medium problems on arrays and strings, and a very small number advance. Accuracy and finishing both matter more than elegance.
  2. Rehearse your projects as a standalone round. A full technical interview is resume defense, down to why you picked that database and that framework. Have a real answer, including what you would choose now.
  3. Learn how a card payment actually flows. Authorisation, clearing and settlement, and where the network sits between issuer and acquirer. It is not required for campus but it transforms the senior design conversation.
  4. Prepare DQ answers that cost you something. The behavioural bar is explicitly about decency, and the reported questions reward examples where you gave up time or credit for someone else. Generic teamwork stories miss it.
  5. Revise SQL and DBMS alongside DSA. The second technical round pairs them, and reported questions cover joins, aggregation and normalisation rather than just algorithms.
  6. For senior roles, prepare reliability and rollback explicitly. A reported final round asks you to design for millions of users and then presses on what happens when a release goes wrong.

Other Company Prep


Mastercard does not publish its interview loop. The India campus shape is drawn from consistent first-person writeups; the US round naming and the role of DQ inside interviews are reported rather than officially documented. Confirm with your recruiter.