Hosthub interview question

Some (normal difficulty) algorithmic/logic related questions on given examples