1st Round: System Design
Design Payment Service
The user will have save cards, upi..
They can add new cards
You have your own webhook --> banking --> fetch trx status
There is banking webhook ---> callback with delay
- The interviewer was mostly interested in how the communication will happen with webhooks.
- How will you handle payment failure and hence don't let user place the order
- What if user tries to place another order, while this payment status is pending
- How would you refund money in case the amount is deducted but the order didn't go through from our side
Time given : 1 hr
2nd Round : DS
IDE : Hacker rank
Given a binary string, return count of all subsequnces of length 5 which are palindrome
This is the final solution that i could come up with. Only 11 test cases were passing out of 15.
int n = s.length();
int ans=0;
long long mod1 = pow(10, 9) + 7;
vector<vector<int>>dp(n, vector<int>(n, 0));
for(int i=n-2; i>=0; i--) {
for(int j=i+2; j<n; j++) {
dp[i][j] = dp[i+1][j] + dp[i][j-1] - dp[i+1][j-1];
if(s[i] == s[j]) {
dp[i][j] += j-i-1;
}
}
}
for(int i=0; i<n; i++) {
for(int j=i+4; j<n; j++) {
if(s[i] == s[j])
ans = (ans + dp[i][j]) % mod1;
}
}
return ans;Time scheduled : 1hr
I was badly stuck at this round. Too messed up. It took me 1:40 hr to come up to this solution. Gave interview without going through all DS topics. The interviewer was really helpful, and never showed any disappointment. He himself was pushing to remove the errors and motivating me.
3rd Round : Machin Coding
I was not informed prior to the interview, that I'll need to use our own IDE. The interviewer asked me to open any ide of my choice, and since i was reseting my system i didn't have any local ide, so I choose leetcode playground. The interviewer said that since it's machine coding, he is expecting me to create multiple packages/classes.
The question was what is exactly mentioned here: Splitwise
I saw this qn first time, but IMO i was able to perform good.
4th Round : LLD
Spent around 20 minutes discussing my current projects.
Asked me design
Reminder service where we'll have to notify the client at particular date and time by calling the API exposed by them.
The interviewer said, that request load is 10000/min.
The interviewer was not at all interested my solution, nor did he ask any corss questions.
Later found this video: Notification Service . The interviewer asked me exaclty same qns which are discussed in this video.
YEO: 5 yrs


