Amazon interview question

a datastructure algo type hackerange