Altimetrik interview question

Design and implement a solutions based on the given scenario.