Amelia interview question

It was not complex