Quantiphi interview question

Questions on my third year project