This is the transcript of the mock interview with Candidate SP (3years)

SDE Guru: Hello, Welcome to the IM interview. Thank you for taking the time to talk to me. Are you ready? Do you have a pen and paper handy, we will go through a few coding excercises?
Candidate SP: Yes

SDE Guru: Before we get started can you briefly describe your background and experience?
Candidate SP: I have around 3.5 years of experience in IT(Information Technology) industry especially in the software services of Healthcare domain. I have relatively more experience in Mainframe environment. I have good exposure to many databases. I was in a Senior associate role before I quit the job and came for studies

SDE Guru: Where do you see yourself in 5 years from now?
Candidate SP: In a Manager cadre for a project

SDE Guru: What is your favorite programming language?

Candidate SP: Java

SDE Guru: Can you rate yourself in Java on a scale of 1 to 10, 1=worst, 10=best?
Candidate SP: 6

SDE Guru: Why do you say you are a 6?
Candidate SP: I have been trained and I had the opportunity to work only on few good projects on java.
SDE Guru: And what will it take to get you from 6 to 7 or 8?

Candidate SP: Exposure to more java based projects and also self practice..

SDE Guru: Let us start with a design question..Are you familiar with a vending machine? The ones that accepts coins, and gives you products you select?
Candidate SP: Yes. what are all the denominations that the machine can accept

SDE Guru: assume1,5 and20
Candidate SP: what is the maximum product price that I can assume?
SDE Guru: 20$

Candidate SP: I assume the minimum value will be 1$
SDE Guru: yes

Candidate SP: ok.. give me few minutes to think of the classes and methods

Candidate SP: I can have a class VendingMachine. There should be a method to know the input amount method to accept the selection and check if the amount is fine and take decision based on that

SDE Guru: what will the “accept input” method look like? what would be the parameters, what will the return values be?
Candidate SP: that method will read input values from the system. It will read the value from the InputStreamReader.

SDE Guru: Okay carry on.
Candidate SP: there should be a method that can give the product price given the product code. So that we can check if the amount that is put is in sufficient or not so, there can be method to calculate the remaining amount from the amount. There should be a method to remove the product from the queue.. So, to summarize a) a method to accept the input amount and product code b) method to get the product price c) Get the product from the queue d) Give away change if any.

SDE Guru: good.. So you have one class and 4 methods?
SDE Guru: Shall we get on with a coding question?

Candidate SP: ok

SDE Guru: Given write a method numberToLetters(int n), where n is between 0 and 999. Can you print the number in words? so if input is 157 the output will be one hundred fifty seven.

Candidate SP: you want it to be “one hundred and fifty seven” or just “one hundred fifty seven”. I mean do you want the and after hundred

SDE Guru: Go ahead and add the “and” and the output should be “one hundred and fifty seven”

Candidate SP: Can I code in java..

SDE Guru: sure

Candidate SP: Here is teh code

SDE Guru: Thank you for your time, please let me know if you have any questions