Open In App

WorkIndia Interview Experience

Improve
Improve
Like Article
Like
Save
Share
Report

There are 4 rounds

  1. API test Round (2 Hours)
  2. System Design Technical Round (2 Hours)
  3. Technical Round by Team Lead (2 Hours)
  4. Cultural Round(HR round + Salary Negotiation Round)

Round 1: This is an API development round. The HR will send the question 1 hour before the round starts. We need to write the working API code. You are free to use google to find solutions, however, copying an existing project is not allowed. You will have to push your project to a GitHub repository and submit this Google Form

I was asked the below question:

Problem Statement: Your task is to create an HTTP API that supports project requirements. A web application that keeps a record of users’ notes.

Requirements:

User account registration: Create a user account. These credentials will be used to log into this panel.

[POST] /app/user

Request Data: {

   ‘username’: str,

   ‘password’: str

}

Response Data: {

   ‘status’: ‘account created’

}

User account login: Provide the ability to log into the panel using the user credentials.

[POST] /app/user/auth

Request Data: {

   ‘username’: str,

   ‘password’: str

}

Response Data: {

   ‘status’: ‘success’,

   ‘userId’: int

}

List Saved Notes:

Provide list of stored notes for the logged-in user

[GET] /app/sites/list/?user={userId}

Request Data: None

Response Data: [List of saved notes]

The list returned should belong to the userId passed with the request

Save a new note:

Provide the ability for users to add a new note.

[POST] /app/sites?user={userId}

Request Data: {

   ‘note’: str,

}

Response Data: {

   ‘status’: ‘success’

}

Optional Requirement: All the notes stored in the database have to be encrypted. No one should be able to read the stored note text without a secret key. The key can be stored in the code itself.

Tech Stack: Any web-server of your choice (Python Flask / Django, NodeJS Express / Koa, Java, etc)

Database: MySQL (Compulsory)

Solution: https://github.com/sudheersingampalli/WorkIndia-notesapp

Round 2 (System Design Round): Design a clone of TikTok which will support the following requirements:

Features to be supported:

  • User can post a video
  • User can see newsfeed of other users
  • Like and Comment Functionality
  • Users can Follow each other.

Solution: https://www.youtube.com/watch?v=VJpfO6KdyWE

After the DB design is done, I was asked an extra question like:

  • A number of users posting more than 5 videos in a day.
  • Find the most popular user: user with max likes in his video
  • Add a favorite feature.
  • Questions on how to scale the above system, what happens when a celebrity with 10M followers sign to your app etc.

Round 3 (Team Lead Will interview):

  • Tell your experience in-depth
  • 2 projects which you contributed and the impact in depth
  • Production issues that you faced and how you solved

DS questions: One out of the below might come:

  1. Given a Binary tree, find all nodes that do not have siblings
  2. Brick Problem. A 2D matrix is given with 0,1 where 1 means brick is good and 0 means brick is having a crack. Find the path the water follows when poured.
  3. “Given 5 containers. Each container has ball bearings weighing 10gms except for 1 container which has a bad batch of ball bearings that weigh 9gms. Each container has the same number of ball bearings.Find the minimum number of weighing attempts needed to find the bad container. (the one that weighs less)”
  4. Three ants are sitting at the three corners of an equilateral triangle. Each ant starts randomly picks a direction and starts to move along the edge of the triangle. What is the probability that none of the ants collide?

Round 4 (Cultural Round): HR questions and Salary discussion.


Last Updated : 13 Oct, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads