Google L4 | Phone Screen | Sep 2024 | Reject

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-12-02Added By Anonymous
Source: Link

Company: Google
Role: L4
Interview Stage: Phone Screen
Location: unknown
Year: 2024

Original Post Content:

About Me:
I was approached by a Google Recruiter in August and I had my virtual phone screen round in Sep 2024. To my surprise, I was given a question which was less DSA and more Design. It seemed pretty easy and I gave a solution verbally first. The interviewer approved it and I started to code. (more on this later) 

Question:
Implement the function getTotalCount (int numDocs), which returns the total number of words in documents with ID numbers in the range [0, numDocs)

//You have the following API available to retrieve the number of words in a document.
//Runs a job on machine with 'machineld' to count the words in document with 'docid'
Parameters:
*machineId: ID of a machine on which to run Countwords job
docId: Document ID for which to count words
Returns: a CWFuture as a handle to the task*

public CWFuture countWords (int machineId, int docId) ;

class CWFuture I

    // Blocks until the operation has completed and a result is available, and returns the result.

    int join() ;

    // Returns whether or not the operation has completed.

    boolean isDone() ;

}

Interview experience:
The initial 15 mins: there was a "technical issue". Interviewer said she had opened the IDE but when I opened it, it kept loading with the message "Interview hasn't opened the link yet". The interviewer said it's a glitch and later gave me a external google document to code in 15 mins later so we could continue. She said she would give 10 minutes to compensate for this.

First 5 mins: Discussion and clarification about constraints and edge cases.
next 8-10 mins: I gave a solution and was asked to code. She approved the code and we moved on to the first follow up. 

Follow-up 1: Limited Machines
What if there are limited machines? In addition to numDocs, getTotalCount) is now passed a maxMachines parameter. You may only use machines with id numbers in the range [0,maxMachines). And what if one document was much bigger than the others? Like what if one doc took an hour to read and others took 5s. How to handle this scenario?

Took me some time to think and she gave a small hint, I used that to modify my code and asked if that was okay. She said yes all good and gave another follow-up.

Follow-up 2
Now we have multiple machines with the same machineId. And a unique machineId can only read one at a time. I had to optimize the code for this scenario.

It took a few minutes (we still had 10-15 mins left), then I proposed an idea that I would reuse the duplicate machineIds to continue reading other documents once they had finished their tasks. She said that sounds good and asked me to explain my modified code. I did and since she was not even looking at the screen, I focused on verbally explaining more and didn't finish the last few checks. I told her that I notice some syntax errors and I asked should I fix it, she said it's okay. (Still not looking at the screen) Had 5 mins left so she asked me if I had any questions, I asked how her experience has been so far at google. 

Overall, I was happy with how everything went and based on her response and overall discussion I was confidently expecting positive outcome, She seemed nice and friendly too.

The Feedback: REJECT
Recruiter called me the next day with an odd feedback for the reject:

  • "I did not give edge cases"(I did and there was not much to consider apart from the range given in the question. I also asked clarifications to make sure I don't miss asking anything)
  • Time management and I did not finish coding fast???(I had a timer in front of me to keep check of every minute. my first code was done within first 10-15 mins. It sounded like they're just giving a generic feedback)
  • Optimisation(I asked before coding the soln each time and I did optimise in the follow ups which she was also okay with)

The feedback sounded completely different from what happened and like copy-paste feedback to give to every candidate and felt unfair and fishy tbh. I also got to know that asian interviewers(she was chinese) prioritise candidates from their own country and act unfair to others but I hope that's not what happened because it's just too wrong. After preparing for 2 months, this is how Google treated me. I shared my feedback too, but they just weren't interested in hearing my side or made any efforts to verify. I'm never interviewing at Google again!

Comments