Qualcomm Interview Question

Design an editor