First Student interview question

coding debugging and write one program based on the interviewer.