Box interview question

mainly it was an algorithms and data structures