Safestore interview question

Pretty simple leetcode algorithms test.