Qualcomm interview question

Design an editor