Three Twitter interview questions on arrays