PhonePe | SDE 2 | August 2022 | Selected
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2022-08-22Added By Anonymous
Source:Ā Link
š§ Experience: The candidate details their interview experience at PhonePe for an SDE2 role.
ā
Outcome: Selected, but offer not extended.
š° Compensation: They asked for numbers after clearing all rounds, and couldn't provide the numbers I asked for, hence didn't extend the offer letter
š Location: unknown
š¢ Company: PhonePe
š Education: unknown
š Benefits: unknown
š
Offer Date: unknown
1. Take home Machine coding round
It was 90 mins Codesignal round.
Problem Statement :
Design a TODO list, with features:
a. Add Task
b. Update Task
c. Remove task
d. Fetch analytics of spilled tasks, completed tasks, etc
You can use in-memory data structure.
After this, they scheduled a 30 mins f2f discussion round for same. The interviewer was very experienced and friendly. He asked me questions around code and disccussed how we can scale it. I had written modular code. He suggested, I could have used Command Pattern to write analytics function and also used Concurrent hash maps instead of hashmaps as data store.
2. PSDS Round
Was asked 2 qns, didn't time to implement 2nd qn. But was able to give convincable algorithm for same.
1. Distribute coins
2. You are given an array A of N positive integer values. A subarray of this array is called Odd-Even subarray if the number of odd integers in this subarray is equal to the number of even integers in this subarray.
Find the number of Odd-Even subarrays for the given array.
A: [1,2,1,2]
[1,2]
[2,1]
[1,2]
Ans : 4
3. System Design round
Design Quora. ( Seems a standard question for PhonePe. Other experiences have mentioned same.)
The requirement was you have to design this to be used internally inside your company only and later extend it to other companies.
Questions asked on my design:
1. Will storing Fk key feasible? (I had gone with choosing RDMS to store qns)
2. How will you display search results?
3. Will you keep separate db or same db for user info and qna
4. How will auth/authorization work inside API gateway
5. How Authorization will work at separate services (Talk about passing auth tokens between the microservices)
6. Cassandra vs NoSql vs RDBMS
4. HM round
Interviewer spent 5 mins talking about work. Rest 50 mins were spent on discussing design architecture of my own current work.
Questions asked:
1. What you think you can improve in current architecture
2. Why did you choose MongoDB
3. How many replicas of server, shards and replicas of DB were there. What was the load
4. How you exposed your API to other teams
5. How many people were involved and how much time it took
Basicaaly questioning architecture decissions. I had already created the architecture design 1 day earlier and jotted down main points which i wanted to discuss, which helped a lot during the interview as I was able to quickly draw things, explain them and also cover main points.
YEO: 5
Selected, but offer not extended.
Comp Update : They asked for numbers after clearing all rounds, and couldn't provide the numbers I asked for, hence didn't extend the offer letter