PDT Partners interview question

basic programming and time complexity questions (technical interview)