XYZ Tech interview question

bug