Altimetrik interview question

Basic code review Hr round