Grid Dynamics interview question

Some basic stuff for intern