GIMO interview question

write scripts C++