Calix interview question

Solutions to the technical problems