Cloud Mentor interview question

It was based on proper dsa