Pendo interview question

max 2 elemnts in array