The first round was a machine coding round conducted on HackerRank. The task was to implement a File Manager System with operations such as:
- Insert File/Folder
- Delete File/Folder
- Move File/Folder
- Search by Exact Match
- Search by Pattern
I received a call from HR ten days after this round, informing me that my interview was scheduled for the next day.
Here are all the questions I was asked during the interview:
- Suppose we have a file or folder that we want to move or add to a source folder, but a file or folder with the same name already exists in the destination. How would you handle this scenario?
- If we introduced a wildcard pattern in the “Search by Pattern” feature, how would you implement a solution?
- Imagine this system is shared among multiple users, and not every user has permission to perform file or folder operations on all files. How would you isolate permitted users from non-permitted ones?
- The final question was on Disjoint Set Union (DSU), which was very similar to the "Accounts Merge" problem on LeetCode.