NextXAP interview question

Very basic