HGS interview question

introduction