Mahmoud want send message friend Ehab their language consist n word number 1 n some word mean k group word word group meaningMahmoud know ith word send cost ai for word message Mahmoud replace word mean leave can help Mahmoud determine minimum cost send messagethe cost send message sum cost send word