lengoo interview question

In the take home coding task I had to code an algorithm for a translation system using attention weights to match term translations.