ironSource interview question

describe the first question algorithm