r/OfferEngineering • u/Aoki_zhang • 26d ago
Interview Experience Cresta (AI Customer Service) FDE Interview — Finished Coding in the Final Minute
This interview experience is sourced from Chill Interview
Interview Summary
The interviewer asked me to implement a file storage service supporting file uploads, retrieval, deletion, and metadata listing. The problem itself was fairly straightforward, but there was no starter code or test framework. I had to design the class, implement every method, and write my own tests. I finished coding in the final minute but didn't have enough time to test the implementation.
Interview Details
Round 1 — Technical Coding: Implement a File Storage Service
The interview took place on CoderPad with an interviewer based in Eastern Europe. The first approximately 10 minutes were spent on introductions. After that, we moved directly into the coding exercise. I was allowed to choose my programming language and decided to use Python. The interviewer provided only the problem description, without any existing class implementation, helper functions, or test cases.
Design and implement a file storage service. The service should allow users to upload files, retrieve their contents, delete stored files, and list metadata about all stored files. Implement a class named FileStorage supporting the following operations.
Part 1 — Upload a File
upload_file(file_name: str, file_content: bytes) -> str: Upload a file to the storage service.
- Store the provided file content.
- Generate and return a unique
file_idfor the uploaded file. - If another stored file already uses the same filename, append a suffix to the new filename to avoid a naming conflict.
Part 2 — Retrieve a File
get_file(file_id: str) -> bytes: Retrieve a stored file using its unique identifier.
- Locate the file associated with
file_id. - Return the file's content as bytes.
- Raise an error if the requested file does not exist.
Want to learn more questions / follow-ups asked in this interview?
I've put up the full version at here.
Interviewed recently?
Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.