PhonePe Software Developer Engineer(SDE) Interview Experience
Recived a mail from an HR to share the resume for the SDE opening. This mail included JD and interview process which was nice.
YOE - 2 years
Total rounds - 3
- First round - Machine Coding Round - In this round the interviewer will provide you a question and you have to submit the code within 90 mins. Either you can code in your personal IDE or the one shared by interviewer.
Question : PhonePe is conducting its annual hackathon and wants to create an interactive platform to host the event. It will be a 2 day event and contestants need to maximize their score over this period by either solving more problems or more difficult problems. Design the backend to support this platform.
Mandatory Functionalities
The system should have the capability to add problems to the Questions Library.
Contestants should be able to register themselves with their name and their department name.
A problem should have attributes like description, tag, difficulty level (easy, medium, hard), score.
Contestants should be able to filter problems based on difficulty level or tags and sort them based on score (design should be extensible to other attributes )
A contestant should be able to solve a problem as well as get the list of problems solved by him/her.
Scoring strategy for a problem could simply be to award the score assigned for the problem or could be something different like a combination of score and time.
Return the current leader of the contest
Extension Problem
A contestant should be able to see the number of users that have solved a given problem and average time taken to solve that problem.
Capabilities
Below are various functions that should be supported with necessary parameters passed.
These are just suggestions, the signatures can be altered as long as the functionalities are provided.
Registering a problem - addProblem()
Registering a user - addUser()
Fetch the list of problems - fetchProblems() - Should take as input filtering and sorting criterias and return all matching problems in the right order.
The result should contain problem attributes like name, tag, difficulty level, score etc.
[ For the extention problem, number of users who have solved a problem and the average time taken for that problem should also be displayed here ]
Solve a problem - solve() - Exposed to a contestant to mark a problem as solved
Fetch solved problems for a user - fetchSolvedProblems() - Fetch the list of solved problems for a user
Get leader - getLeader() - Returns the name and department of the leader
Guidelines
You should store the data in-memory using a language-specific data-structure.
Implement clear separation between your data layers and service layers.
Simple and basic function are expected as entry point - no marks for providing fancy * restful API or framework implementation
Because this is a machine coding round, heavy focus would be given on data modeling, code quality etc, candidate should not focus too much time on algo which compromises with implementation time
Expectations:
Your code should cover all the mandatory functionalities explained above.
Your code should be executable and clean.
Your code should be properly refactored, and exceptions should be gracefully handled.
Appropriate errors should be displayed on the console
-
Second round - DSA and CS concepts - one question was based on trie where input was an array of strings and a search key and you need to return the 3 matching strings starting with the seach key.
Don't remember another one but it was easy leetcode problem -
Third round - HM round - All the discussion over projects.
Process completed witin 2 weeks and got positive response. Got a call from HR to schedule a meet to discuss compensation but that call never happend as I told them I am waiting for compensation numbers from Adobe as well and that was a mistake. I contacted them after 3-4 days and they said that there are some internal movements to fill the requirement and they are putting me on hold.
Hope you find this helpful.


