Treebo Hotels Design Coding Interview Question for PSE

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)


  1. Takes and reads a card
  2. Authenticates and authorizes the card using a pin (use card number/chip read data to validate the card)
  3. Supports multiple banks – HDFC, ICICI, Kotak
  4. Supports multiple types of cards – visa, master, maestro
  5. Different banks can have different flows –
  6. Supports currencies of denominations of 100, 500, 2000 – code
  7. Takes input of the amount
  8. Dispense the amount
  9. Deducts the amount from the user’s account – remote server – call API

He gave me an hour to solve this one.

One of the other candidates were asked to design a multilevel parking system.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *