SingleStore interview question

Given a code base, add a given functionality.