Amazon interview question

Remove Letter To Equalize Frequency LLD HLD