AKUNA CAPITAL interview question

Write a program to interpret exchange messages.