Merge overlapping corrections | Grammarly Interview Question