FIS interview question

basic cpp concepts puzzles mutlithreading