Pandora interview question

it was LC 2 sum