Crio.Do interview question

Grid vs flex box, when to use what