Recently interviewed with Agoda for Staff Software Engineer role. Could not clear the system design/platform round. Sharing the questions and discussion topics for others preparing for senior backend/platform roles.
Question 1 — Simple Chemical Formula Evaluation
Write a function:
calculateWeight(String formula)
Requirements:
Supported elements:
No parentheses
Single-digit multipliers only
Example:
Input:
CH4
Output:
16
Explanation:
C = 12
H4 = 1 × 4 = 4
Total = 16
Question 2 — Complex Chemical Formula Evaluation
Enhancement over previous problem:
Examples:
Input:
H(CH4)2
Output:
33
Input:
((CH4))
Output:
16
Main concepts:
Architecture Problem
Scenario:
A booking platform needs to expose APIs for external suppliers to fetch booking information.
Requirements:
Support 10–20 suppliers
Suppliers fetch bookings using different filters:
Peak traffic:
Existing proposal from team:
Main discussion areas:
Architecture topics interviewer focused on:
Code Review Discussion
Second part of round involved reviewing Java code for supplier booking query API.
Focus areas:
Interview was heavily focused on:
Hope this helps others preparing for Agoda platform/backend interviews.