Slide Inc interview question

Everything was asked by interviewers