CYE interview question

live coding and question around it