1. How would you design a blockchain system for interbank settlement?
The interview question is open-ended and relates to blockchain technology. You are asked to consider how you would design a blockchain system that could be used for settling transactions between banks.
2. Design a Banking System
Design a banking system with the following functionalities based on the input array containing the required operations: 1. Implement a system to deposit money. 2. Design a transfer system. 3. Create a delayed transfer operation that ensures the user has enough money at the time of transfer. 4. Merge two accounts, including transferring the accounts within the transfer system to the merged account. The input includes action, timestamp, sourceAccount, targetAccount, and amount.
3. Design a File Storage System
Design a file storage system with the following functionalities: 1. ADD FILE to add a new file to the system. 2. GET FILE SIZE to retrieve the size of a file. 3. MOVE FILE to move a file within the system. 4. GET LARGEST N to retrieve the largest 'n' files that match a given prefix. 5. GET VERSION to get the current version of a file. 6. DELETE VERSION to delete a specific version of a file. Ensure to handle edge cases appropriately.