This is used to prepare for the interview problem about data structure