ABC interview question

data structures and algorithms, project