Design an editable sequence with marker | Google Interview Question