KNNX interview question

How you decide that Project will do by Agile or Waterfall?