Pergunta de entrevista da empresa BroadPeak Technologies

Functional testing important or UI testing? In which situations one is more important than the other?