Pendo Interview Question

max 2 elemnts in array