write solution for teenager