Treebo Hotels Design Coding Interview Question for PSE
I got a call from the consultancy as they find my profile interested and machining to their client’s job requirement. Here the client is Treebo hotel.
After having a discussion on the call, she scheduled the interview with the Treebo hotel interviewer.
This career opportunity was for the Principle Software Engineer (PSE) position and for the experienced candidate.
The first round was a design coding interview. This interview was scheduled for 2 hours on Google hangout.
Treebo Hotels Design Coding Interview
After a formal introduction, he shared the Google Docs page. It was accessible to both of us. When anyone one of us writes, it was visible to both of us.
Here is the design coding question he asked. We have to design the ATM machine. The design should satisfy the below requirements. I am sharing my experience to tackle this design interview.
Q. ATM machine (Single ATM machine)
- Takes and reads a card
- Authenticates and authorizes the card using a pin (use card number/chip read data to validate the card)
- Supports multiple banks – HDFC, ICICI, Kotak
- Supports multiple types of cards – visa, master, maestro
- Different banks can have different flows –
- Supports currencies of denominations of 100, 500, 2000 – code
- Takes input of the amount
- Dispense the amount
- Deducts the amount from the user’s account – remote server – call API
He gave me an hour to solve this one.
Note: You don’t need to write the exact code for it. Define the skeleton of the classes and data structure you are using. And then write the pseudo-code to satisfy each requirement.
After one hour, we discuss it. He asked me some questions about the design I have implemented.
For the 9th requirement, I told him about the REST API. He asked me some questions on REST API.
If you have any doubt or want to know any detail about the Treebo Hotels Design Coding Interview, let me know in the comment.
All the best!
Editors’ Note: This Treebo coding interview experience is shared by the anonymous candidate. We wish him/her all the best for his/her future.