PhonePe | SDE | BLR | July'24

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2024-08-29Added By Anonymous
Source:Β Link
βœ… Outcome: Offer πŸ“ Location: Bangalore 🏒 Company: PhonePe πŸ“… R1: Machine coding: Design a system which will maintain the version history of update.
- create document
- update document
- change version of document
- go to a particular version of document
- delete a document
- Additional Requirnment:
- user can do operations based on the access given
- You have see question from codesignal test and code in your IDE. Alloted time 2hrs but can take 30mins more, submit the code in zip file over mail.
- Then after a couple of days one engineer connect on a 30mins call to see the design. He didnot go very deep into algos, just was interested in the classes. he liked the design but asked how much time I took as I hade wrote so much code and so many classes? I told 2hr and some 20 minutes more. He okay, HR will contact you. We reviewed the design on my laptop and not the one which I sent over mail. But I didn’t did any improvements after the submit.
R2: PS/DS
- In a array of integers. Count maximum integers you can add such that at any point the never go negative from left to right. ← However the question language was given in a scenario and it boils down to this question.
- Explained and wrote code bit a typo which sucked 5 extra minutes
- sum-of-distances-in-tree LC hard
- Started with O(n*n) and eventually I gave O(n) solution. He ased to rite sudo code only as the time was less.
R3: HM: she general intro about PhonePe business evolution
- Why are you switching? what happened in last company?
- Bussiness side of prev org?
- Why you switched the database from DynamoDb to Postgres?
- Types on indexing on PG?
- Question around project that why do did and what you did?
- …
- At last gave a question: you are getting different type of exceptions in the service. You have to send alerts if a particular type of exception frequency exceeds a limit in a rolling time window.
- For es: if exception type A exceeds 5 times in 30mins or exception B exceeds 10 times in 1 hour
- I gave deqeue solution she was not satisfied, she kept on saying that all operations will not be O(1)
R4: PS/DS - onsite
- longest continuous subarray with absolute diff less than or equal to limit: Questino avaivle with this heading in Leetcode
- I started with O(n*n*n) solution and optimised it to O(n*n*logn), then O(n*(logn)^2) then On(nlogn) and finally most optimal solution O(n)
- later on he asked to write sudo code
- after nlogn solution he gave hint to try using some different data structures
R5: HM round again with 2 managers but with name Bar raiser
- what is the difference I found between last 2 org I worked
- What thing I want to improve in next 5 years
- What hobbies I have apart from work
- Why PhonePe
- What factors you consider to join company
- Why your company moved from DynamoDb to PG?
- did you tried knowing reason for this. I gave few reasons and told I was supposed to do only as SDE 1. But they want β€œwhy you are doing and what are you doing”.
- If I gave you to build a service from scratch can you do it alone? Or will need someone help?
- I told yes I need someone to give/discuss a roadmap
- A time when you had conflict with some team member?
- I told a scenario of optimizing a query
- in that also they told many aspects like index on the column in query, size of DB and so much

Next Day, I received the mail with offer.
Comments