Answer:
Code is in the attached screenshot.
Explanation:
Assumed it was written in Java based on your other question asked.
Cloud storage is a service model in which data is maintained, managed, backed up remotely and made available to users over a network (typically the Internet).