Master Card interview experience Real time questions & tips from candidates to crack your interview

SDE - 2

Master Card
upvote
share-icon
5 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 Months
Topics: DSA, Core Java, Advanced Java, Microservices, AWS Cloud, System Design
Tip
Tip

Tip 1 : Practice Java well as it is important for Fintech BE roles.
Tip 2 : Have practical knowledge in Microservices and Cloud

Application process
Where: Referral
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Keep relevant experience as per JD of role
Tip 2 : Show technical projects
Tip 3 : Do not put false things on your resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date12 May 2021
Coding problem1

It contained Easy-Medium Programming questions, one was normal String and One was DP

1. Find Number Of Islands

Moderate
34m average time
60% success
0/80
Asked in companies
MicrosoftAmazonUber

You are given a 2-dimensional array/list having N rows and M columns, which is filled with ones(1) and zeroes(0). 1 signifies land, and 0 signifies water.

A cell is said to be connected to another cell, if one cell lies immediately next to the other cell, in any of the eight directions (two vertical, two horizontal, and four diagonals).

A group of connected cells having value 1 is called an island. Your task is to find the number of such islands present in the matrix.

Problem approach

import java.io.*;
import java.util.*;
public class Main
{
public static void DFS(int[][] input, int i, int j, int row, int col){
if(i<0||j<0||i>row-1||j>col-1){
return;
}
if(input[i][j]==1){
input[i][j]=0;
DFS(input,i+1,j,row,col);
DFS(input,i-1,j,row,col);
DFS(input,i,j+1,row,col);
DFS(input,i,j-1,row,col);
}
}

public static int countNumber(int[][] input, int row, int col){
int count =0;
for(int i=0;i {
for(int j=0;j if(input[i][j]==1){
input[i][j]=0;

count++;
System.out.println(i+" "+j);
DFS(input,i+1,j,row,col);
DFS(input,i-1,j,row,col);
DFS(input,i,j-1,row,col);
DFS(input,i,j+1,row,col);
}
}
}
return count;
}
public static void main(String[] args) {
//Scanner sc = new Scanner(System.in);
int row =5;
int col =5;
// row = sc.nextInt();
//col = sc.nextInt();
int[][] input = {
{1, 1, 0, 0, 0},
{1, 1, 0, 0, 1},
{1, 1, 1, 1, 1},
{1, 0, 1, 0, 1},
{1, 0, 1, 0, 1}};

System.out.println(countNumber(input,row,col));
}
}

Try solving now
02
Round
Easy
Telephonic
Duration30 minutes
Interview date14 May 2021
Coding problem1

Timing: 2PM
Telephonic Round

1. Basic HR Questions

Asked about my knowledge of Mastercard and why I am looking for a change (HR discussion)

Problem approach

Tip 1 : Read about the company
Tip 2 : Answer confidently

03
Round
Medium
Video Call
Duration60 minutes
Interview date20 May 2021
Coding problem1

Timing: 2-3 PM
It happened on Teams
It consisted of questions from Java, and some tricky Java concepts

1. OS Question

Write a program using two threads print even and odd number simultaneously

Problem approach

import java.util.concurrent.*;
class EvenThread implements Runnable{
private SemaphoreLock lock;
public EvenThread(SemaphoreLock lock){
this.lock = lock;
}
@Override
public void run(){
try{
for(int i =0;i<=10;i=i+2){
lock.printEvenNumber(i);
}
}
catch(Exception e){
System.out.println(e);
}
}
}

class OddThread implements Runnable{
private SemaphoreLock lock;
public OddThread(SemaphoreLock lock){
this.lock = lock;
}
@Override
public void run() {
try{
for(int i =1;i<10;i=i+2){
lock.printOddNumber(i);
}
}
catch(Exception e){
System.out.println(e);
}
}
}

class SemaphoreLock {
private Semaphore even = new Semaphore(1);
private Semaphore odd = new Semaphore(0);

void printEvenNumber(int i) throws Exception {
even.acquire();
//System.out.println(even);
System.out.println(i);
odd.release();
}

void printOddNumber(int i) throws Exception {
odd.acquire();
System.out.println(i);
even.release();
}
}

public class Main
{
public static void main(String[] args) throws Exception {
SemaphoreLock lock = new SemaphoreLock();
Thread oddThread = new Thread(new OddThread(lock));
Thread evenThread = new Thread(new EvenThread(lock));
evenThread.start();
oddThread.start();

}
}

04
Round
Medium
Video Call
Duration60 minutes
Interview date25 May 2021
Coding problem2

Timing- 12-1 PM
Asked a lot of general System Design Questions and DBMS concepts

1. System Design Question

Veterinary System - Design Doctor and Patient System. Manage Elements in the design.

Problem approach

Tip 1 : Ask and clarify doubts from the interviewers
Tip 2 : Take notes and write clearly about the design you are proposing
Tip 3 : Prepare the design questions well

2. System Design Question

How to invalidate JWT after logout

Problem approach

Tip 1 : Read about JWT and Java authorization
Tip 2 : Answer clearly

05
Round
Easy
HR Round
Duration30 minutes
Interview date26 May 2021
Coding problem1

Timing - 10-11
It was on Teams, virtual interview

1. Basic HR Questions

Asked about my expectations
Why I am looking for a change
What are my core values
Why mastercard?

Problem approach

Tip 1 : Prepare for Managerial round
Tip 2 : Answer questions smartly and try to show interest in the role

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
8518 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3320 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2581 views
0 comments
0 upvotes
SDE - 2
4 rounds | 5 problems
Interviewed by Master Card
2836 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29570 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by HashedIn
9584 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6677 views
1 comments
0 upvotes