Paytm|Tech-Lead|Mumbai|Nov 2019[Reject]

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2019-12-18Added By Anonymous
Source: Link
Paytm | Technical Lead | Mumbai | Nov 2019 [Reject]

The drive happened in mumbai for a full time job in Noida. There were 4 rounds in total including a written test. I was skipped from written test and was called for an interview because of my experience, the interview process were as follows:- Round 1 (Written) :- I actually do not appear for this round but while I was waiting for my interview I peeped few programming questions:- 1. https://leetcode.com/problems/sort-colors/ .This problem is one of the version of Dutch National Flag problem for more https://en.wikipedia.org/wiki/Dutch_national_flag_problem 2. https://leetcode.com/problems/symmetric-tree/. 3. https://leetcode.com/problems/3sum/ 4. https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree/ Apart from this there were MCQ related to java. Round-2(Face to Face) :- This round was with one of the engineering managers, after going through my resume carefully he asked me the folowing questions:- 1. How GC works in Java?(which i explained very well as I was working for memory related issue in my current project) 2. He asked me to explain the architecture of my current project(I explained it and few counter questions after that) 3. What are the different strategies of using load balancer, as it was mentioned in my resume. I mentioned few like round robin, least connection, ip hash and few questions over them related to short coming's in each one of them. 4. Implement quick sort in java, and after taking around 15 minutes I shown him the implementation. After waiting for around 5 minutes the HR told me that I have to appear for the next round:- Round 3(Face to Face):- This round was with one of the EM's and he upfrontly asked me to design Rate Limitor application(A service will serve only the fixed number of request in a fixed amount of time post that all request to that service will fail ). For ex:- getUsers API return the number of users and will only serve 200 requests/secound and post that all request will fail and post that the counter will reset. The interviewer mentioned to design a Class Diagram, Sequence Diagram and them the working piece of code. Post that he left the room and I was busy with number of A4 sheets:- After thinking a bit I came up with a solution using Semaphore and designed a class daigram for the same and I was not aware about the sequence daigram. After 45 minutes interviewer came and I explained my design to him and he asked me few questions about the code that I have written like :What will tryAcquire() will do? What will ScheduledThreadPool will do? I realized he was not impressed by my design as the Sequence diagram was also missing from that. Post that interviewer asked me below questions: 2.What are Immutable classes in Java and design a Immtable class in Java? Whar are points that are to be remembered when designing the Immutable classes? 3.What are ConcurrentHashMap and how it works in Java? Write your own get and put methods of ConcurrentHashMap. In this question I screwed up in a big way as I forgot that ConcurrentHashMap takes lock on the segment of Array. Result:[Rejected]
Comments