solutions/max_kaskevich/1.4/sources/task/main.cpp: added solution code.