Build a live markdown editor: type markdown on the left and see it rendered to HTML on the right, with a small parser that stays safe against injection.
Asked in frontend interviews at Atlassian and Reddit