Deqode interview question

mostly data structures knowledge is checked