Altimetrik interview question

Only one problem solving question