Josh Software interview question

data structures , algo