Level: Senior-Level
Round: Online Assessment · Type: Coding · Difficulty: 7/10 · Duration: 60 min · Interviewer: Neutral
Location: San Francisco Bay Area
Interview date: 2026-01-02
Got offer: False
I was asked to calculate ChatGPT costs based on user input, output tokens, and different subscription plans.
I was asked to calculate the cost of using ChatGPT for each user, given their user ID, input tokens, output tokens, and subscription plan. There were two plan types:
If a user has both plan types, the cost should be calculated proportionally.
I found the problem not too difficult, but I felt rushed for time and failed to debug two test cases. This was my first online assessment, and I didn't like that the failed test cases didn't provide reasons for failure or the expected output. The input for the failed cases was also not provided, but I was able to log it myself, which wasted a few minutes.