Total Exp: 4+ Years
Problem: Build a delivery cost tracking system
Asked in 3 parts:
add_driver(driverId)
add_delivery(driverId, startTime, endTime)
get_total_cost()Discussed approach, data structures, and time complexity before coding.
pay_up_to_time(upToTime)
get_cost_to_be_paid()get_max_active_drivers_in_last_24_hours(currentTime)Problem: Music Analytics System
add_song(songId)
play_song(userId, songId)
print_analytics()print_recently_played(userId)
print_recently_played(userId, k)Behavioral + Project discussion
HR shared prep questions. Discussed one main project in detail.
Problem: Validate business rules on expenses
Rules like max total amount, seller type limits, expense type restrictions
Discussed how to model rules dynamically and validate them against expenses.
Problem: Design a Google News-like aggregator
Talked about crawling, indexing, ranking, and scalability.