Tip 1 : Practice Java well as it is important for Fintech BE roles.
Tip 2 : Have practical knowledge in Microservices and Cloud
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.
It contained Easy-Medium Programming questions, one was normal String and One was DP



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));
}
}
Timing: 2PM
Telephonic Round
Asked about my knowledge of Mastercard and why I am looking for a change (HR discussion)
Tip 1 : Read about the company
Tip 2 : Answer confidently
Timing: 2-3 PM
It happened on Teams
It consisted of questions from Java, and some tricky Java concepts
Write a program using two threads print even and odd number simultaneously
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();
}
}
Timing- 12-1 PM
Asked a lot of general System Design Questions and DBMS concepts
Veterinary System - Design Doctor and Patient System. Manage Elements in the design.
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
How to invalidate JWT after logout
Tip 1 : Read about JWT and Java authorization
Tip 2 : Answer clearly
Timing - 10-11
It was on Teams, virtual interview
Asked about my expectations
Why I am looking for a change
What are my core values
Why mastercard?
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
What is recursion?