Implement 2 methods: fetch_value_at_an_index_at_snapshot() and take_snapshot_for_array for an array.
Anonymous
I gave 3 solutions and it was an easy interview. So, I wouldn't mention the solution here.
Check out your Company Bowl for anonymous work chats.