Angular Minds interview question

Pattern questions, String, Array, Logic.