Bridestory interview question

Basic data structure coding test