Ivanti interview question

Basic Data structure and logical problems.